Skip to content

JIT: Fix RISC-V emitter build#118407

Merged
jakobbotsch merged 2 commits intodotnet:mainfrom
amanasifkhalid:fix-emitter-riscv
Aug 6, 2025
Merged

JIT: Fix RISC-V emitter build#118407
jakobbotsch merged 2 commits intodotnet:mainfrom
amanasifkhalid:fix-emitter-riscv

Conversation

@amanasifkhalid
Copy link
Copy Markdown
Contributor

SPMI replay runs are red from this (example).

Copilot AI review requested due to automatic review settings August 5, 2025 20:03
@amanasifkhalid
Copy link
Copy Markdown
Contributor Author

@dotnet/jit-contrib PTAL, thanks!

@github-actions github-actions Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Aug 5, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a build issue in the RISC-V JIT emitter that was causing SPMI replay runs to fail. The issue was related to an implicit pointer arithmetic conversion that needed explicit casting.

Key Changes

  • Added explicit cast to convert pointer difference to unsigned integer
  • Added assertion to validate the pointer arithmetic result

Comment thread src/coreclr/jit/emitriscv64.cpp
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@risc-vv
Copy link
Copy Markdown

risc-vv commented Aug 5, 2025

@dotnet/samsung Could you please take a look? These changes may be related to riscv64.

@jakobbotsch jakobbotsch merged commit d000ce2 into dotnet:main Aug 6, 2025
105 checks passed
@amanasifkhalid amanasifkhalid deleted the fix-emitter-riscv branch August 6, 2025 14:27
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants