Skip to content

[APX] Make sure disasmembler log correct EGPR size when OSIZE is 32b. #116988

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

Merged
merged 3 commits into from
Jul 1, 2025

Conversation

Ruihan-Yin
Copy link
Member

image

The disasmembler was not printing the size suffix when OSIZE is 32b, this PR fixes the issue.

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jun 24, 2025
@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 Jun 24, 2025
Copy link
Contributor

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

@Ruihan-Yin Ruihan-Yin marked this pull request as ready for review June 24, 2025 23:23
@Copilot Copilot AI review requested due to automatic review settings June 24, 2025 23:23
Copy link
Contributor

@Copilot 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 addresses an issue with the disasmembler where the incorrect size suffix was logged when OSIZE is 32b by updating the register bounds check.

  • Changed the register upper bound check from REG_R15 to REG_R31
  • Adjusted the condition to ensure proper handling of 32b cases
Comments suppressed due to low confidence (1)

src/coreclr/jit/emitxarch.cpp:11798

  • Ensure REG_R31 is defined and valid on all target platforms where this code executes; this update is essential for logging the correct EGPR size when OSIZE is 32b.
            if (reg > REG_R31)

@Ruihan-Yin
Copy link
Member Author

@dotnet/intel for review, thanks!

@tannergooding tannergooding merged commit df944d3 into dotnet:main Jul 1, 2025
110 of 112 checks passed
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.

2 participants