summaryrefslogtreecommitdiff
path: root/benchmark/gc/hash2.rb
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2025-06-10 21:58:56 +0900
committerAlan Wu <[email protected]>2025-06-11 19:49:49 +0900
commit59fad961b8c8b70ddac0c450963d51e5076c2c47 (patch)
tree6407ae38be877db5afb38250601557f0321c65c5 /benchmark/gc/hash2.rb
parente5c7f1695e8cf774d073e7b103c1d9289cad56ee (diff)
ZJIT: x86: Fix panic writing 32-bit number with top bit setHEADmaster
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 'benchmark/gc/hash2.rb')
0 files changed, 0 insertions, 0 deletions