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.
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
|
|
||
| case INS_ldurh: | ||
| case INS_ldapurh: | ||
| case INS_sturh: |
There was a problem hiding this comment.
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.
Addressed. They indeed have the same issue but we never use them 🙂
Fixes #105906