Skip to content

Conversation

@jakobbotsch
Copy link
Member

arm32 does not set the right flags for these operations, so it cannot be enabled.

I enabled this in #121380, and these tests did fail there too, but I mistakenly thought the failure was preexisting and the same as #121659.

Also do a small refactoring while I'm here, to make use of SupportsSettingFlagsAsCompareToZero from SupportsSettingZeroFlag.

Fix #122185

arm32 does not set the right flags for these bitwise and operations, so
it cannot be enabled.
Copilot AI review requested due to automatic review settings December 5, 2025 08:57
@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 Dec 5, 2025
@jakobbotsch
Copy link
Member Author

cc @dotnet/jit-contrib PTAL @EgorBo (fixes innerloop)

@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.

Copy link
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 disables flag optimization for GT_AND and GT_AND_NOT operations on ARM32 architecture, which was incorrectly enabled in a previous change (#121380). The issue was that ARM32 does not set the correct flags for these operations, causing test failures referenced in #122185.

  • Restricts SupportsSettingFlagsAsCompareToZero() to ARM64 only (previously both ARM32 and ARM64)
  • Refactors SupportsSettingZeroFlag() to call SupportsSettingFlagsAsCompareToZero() first, eliminating duplicate code
  • Properly fixes the root cause of test failures on ARM32

@jakobbotsch
Copy link
Member Author

/ba-g Deadletter

@jakobbotsch jakobbotsch merged commit 90725c7 into dotnet:main Dec 5, 2025
127 of 130 checks passed
@jakobbotsch jakobbotsch deleted the fix-122185 branch December 5, 2025 15:01
@github-actions github-actions bot locked and limited conversation to collaborators Jan 5, 2026
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.

Vector saturate tests failing on arm32

3 participants