kaseyc opened PR #2654 from rex
to main
:
This unifies the logic around Rex prefix emission and hopefully makes REX prefix errors less likely.
There are still several instructions that use other sources to determine the flags, so set_w and clear_w are left as is.
closes #2586.
cfallin submitted PR Review.
cfallin submitted PR Review.
cfallin created PR Review Comment:
It might be a little cleaner / more type-safe to take an
(OperandSIze, Reg)
tuple here (and useint_reg_enc()
), I think.
kaseyc updated PR #2654 from rex
to main
.
kaseyc updated PR #2654 from rex
to main
.
kaseyc submitted PR Review.
kaseyc created PR Review Comment:
Done.
For consistency I also changed always_emit_if_8bit_needed to also take a Reg as its argument.
kaseyc updated PR #2654 from rex
to main
.
cfallin submitted PR Review.
cfallin merged PR #2654.
Last updated: Nov 22 2024 at 16:03 UTC