Skip to content
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

cranelift/riscv64: Fix mv instruction pretty-printing #8494

Merged
merged 1 commit into from Apr 27, 2024

Conversation

jameysharp
Copy link
Contributor

The operand collector and the instruction emitter for Inst::Mov both placed the rm register before rd, so the emitted code was correct, but the pretty-printer used the opposite order and so printed the operands backwards. Note that the VCode disassembly disagreed with Capstone's disassembly of the emitted machine code.

The operand collector and the instruction emitter for Inst::Mov both
placed the `rm` register before `rd`, so the emitted code was correct,
but the pretty-printer used the opposite order and so printed the
operands backwards. Note that the VCode disassembly disagreed with
Capstone's disassembly of the emitted machine code.
@jameysharp jameysharp requested a review from a team as a code owner April 27, 2024 07:41
@jameysharp jameysharp requested review from abrown and removed request for a team April 27, 2024 07:41
@github-actions github-actions bot added the cranelift Issues related to the Cranelift code generator label Apr 27, 2024
Copy link
Contributor

@afonso360 afonso360 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat, thanks for catching this!

@afonso360 afonso360 added this pull request to the merge queue Apr 27, 2024
Merged via the queue into bytecodealliance:main with commit 1cf3a9d Apr 27, 2024
21 checks passed
@jameysharp jameysharp deleted the riscv-fix-mv branch April 27, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants