Skip to content

Fix JIT: Arm IsContainableImmed to handle shifts#125938

Open
sachinsharma3191 wants to merge 6 commits intodotnet:mainfrom
sachinsharma3191:fix/125578-arm-containable-immed-shifts
Open

Fix JIT: Arm IsContainableImmed to handle shifts#125938
sachinsharma3191 wants to merge 6 commits intodotnet:mainfrom
sachinsharma3191:fix/125578-arm-containable-immed-shifts

Conversation

@sachinsharma3191
Copy link

@sachinsharma3191 sachinsharma3191 commented Mar 23, 2026

Fixes #125578

  • Add GT_LSH, GT_RSH, GT_RSZ, GT_ROL, GT_ROR cases to IsContainableImmed
  • ARM64: use emitter::isValidImmShift for shift amount validation
  • ARM32: validate shift amount in 0-32 range
  • Update ContainCheckShiftRotate to use CheckImmedAndMakeContained for consistency

- Add GT_LSH, GT_RSH, GT_RSZ, GT_ROL, GT_ROR cases to IsContainableImmed
- ARM64: use emitter::isValidImmShift for shift amount validation
- ARM32: validate shift amount in 0-32 range
- Update ContainCheckShiftRotate to use CheckImmedAndMakeContained for consistency

Fixes dotnet#125578

Made-with: Cursor
@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 Mar 23, 2026
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Mar 23, 2026
@dotnet-policy-service
Copy link
Contributor

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

@sachinsharma3191 sachinsharma3191 marked this pull request as ready for review March 23, 2026 01:51
@sachinsharma3191 sachinsharma3191 marked this pull request as draft March 23, 2026 01:51
@sachinsharma3191 sachinsharma3191 marked this pull request as ready for review March 23, 2026 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

JIT: Arm IsContainableImmed doesnt handle shifts

1 participant