Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RISC-V] Use zero register as argument for atomics #112693

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

tomeksowi
Copy link
Contributor

A zero constant was unnecessarily synthesized, wasting a register.

Also fix a non-obvious bug in CompareExchange with unextended comparand register (see added test case).

Part of #84834, cc @dotnet/samsung

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Feb 19, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Feb 19, 2025
Copy link
Contributor

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

// Return Value:
// Whether the floating-point immediate can be synthesized with one instruction
//
static bool isSingleInstructionFpImm(double value, emitAttr size, int64_t* outBits)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@risc-vv
Copy link

risc-vv commented Feb 19, 2025

68730b3 is being scheduled for building and testing

GIT: 68730b307eb4aeba8c7f7afd045350ad4f2ffe95
REPO: dotnet/runtime
BRANCH: main

@lewing
Copy link
Member

lewing commented Feb 19, 2025

/azp run runtime

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@clamp03 clamp03 requested a review from jakobbotsch February 21, 2025 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-riscv Related to the RISC-V architecture area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants