-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix STLUR for 0 imm #106760
Fix STLUR for 0 imm #106760
Conversation
PTAL @dotnet/jit-contrib this unblocks Debug build for NativeAOT on macOS (or any other RCPC2 arm64 hardware). Some code creates Generally, we emit PS: I wasn't able to come up with a test which creates |
PTAL @amanasifkhalid @TIHan as emitter experts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know about "emitter expert," but this LGTM.
PS: I wasn't able to come up with a test which creates LEA(base + 0) tree, so leaving Debug repo build as a test.
It might be a good idea to add tests for this pattern to codegenarm64test.cpp
. You can then run those tests with DOTNET_JitEmitUnitTests="*"
and DOTNET_JitEmitUnitTestsSections="general"
, and just replay a single method with SPMI.
Thanks!
src/coreclr/jit/emitarm64.cpp
Outdated
@@ -5633,9 +5631,7 @@ void emitter::emitIns_R_R_I(instruction ins, | |||
break; | |||
|
|||
case INS_ldurh: | |||
case INS_ldapurh: | |||
case INS_sturh: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While you're here, could you please move these cases up to INS_ldurb/INS_sturb
since they have the same behavior?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed. They indeed have the same issue but we never use them 🙂
Fixes #105906