1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix tests on yjit_backend_ir for AArch64 backend (https://github.com/Shopify/ruby/pull/383)

This commit is contained in:
Kevin Newton 2022-08-09 10:28:19 -04:00 committed by Takashi Kokubun
parent b8846dd2f8
commit cd7506593a
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -882,8 +882,8 @@ mod tests {
asm.store(Opnd::mem(64, Opnd::Reg(X2_REG), 0), opnd);
asm.compile_with_regs(&mut cb, vec![X3_REG]);
let insns = cb.get_ptr(0).raw_ptr() as *const u32;
assert_eq!(0x8b010003, unsafe { *insns });
// Assert that only 2 instructions were written.
assert_eq!(8, cb.get_write_pos());
}
#[test]