diff options
author | Kevin Newton <kddnewton@gmail.com> | 2022-08-09 10:28:19 -0400 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-08-29 08:47:09 -0700 |
commit | cd7506593ad6bd92dd330ba969e76ff8a1f5ee31 (patch) | |
tree | 3257c8545b57ce5c46d6cdb038b704d748cef486 /yjit | |
parent | b8846dd2f8042fc13a0f5ae17e2e2a6f400074dd (diff) |
Fix tests on yjit_backend_ir for AArch64 backend (https://github.com/Shopify/ruby/pull/383)
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/src/backend/arm64/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yjit/src/backend/arm64/mod.rs b/yjit/src/backend/arm64/mod.rs index 196523bf74..234339ca4e 100644 --- a/yjit/src/backend/arm64/mod.rs +++ b/yjit/src/backend/arm64/mod.rs @@ -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] |