ZJIT: Use Mem.num_bits in Mem split#15177
Conversation
|
Should fix the based on but I can't tell how to test this |
try |
It's for a large displacement, so I think you need to use something like For example: #[test]
fn test_split_large_disp() {
let (mut asm, mut cb) = setup_asm();
asm.mov(C_RET_OPND, Opnd::mem(32, C_RET_OPND, 512));
asm.compile(&mut cb).unwrap();
assert_disasm_snapshot!(cb.disasm(), @r"
...
");
assert_snapshot!(cb.hexdump(), @"...");
} |
We're getting somewhere........ |
|
This is with let vreg = asm.load(Opnd::mem(32, C_RET_OPND, 512));
asm.compile(&mut cb); |
|
I have a growing sense of unease that our scratch reg splitting might not use the right register sizes in all cases |
|
I think we got it! |
XrXr
left a comment
There was a problem hiding this comment.
nit: s/512/0x200/ so they look the same in rust source and in the snapshot
❌ 1/66963 Tests Failedtest/io/wait/test_io_wait.rb#test_wait |
"our scratch reg splitting" is in |
No description provided.