diff options
author | Alan Wu <[email protected]> | 2025-06-10 21:58:56 +0900 |
---|---|---|
committer | Alan Wu <[email protected]> | 2025-06-11 19:49:49 +0900 |
commit | 59fad961b8c8b70ddac0c450963d51e5076c2c47 (patch) | |
tree | 6407ae38be877db5afb38250601557f0321c65c5 /README.md | |
parent | e5c7f1695e8cf774d073e7b103c1d9289cad56ee (diff) |
Previously, `asm.mov(m32, imm32)` panicked when `imm32 > 0x80000000`. It
attempted to split imm32 into a register before doing the store, but
then the register size didn't match the destination size.
Instead of splitting, use the `MOV r/m32, imm32` form which works for
all 32-bit values. Adjust asserts that assumed that all forms undergo
sign extension, which is not true for this case.
See: 54edc930f9f0a658da45cfcef46648d1b6f82467
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13576
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions