[前][次][番号順一覧][スレッド一覧]

ruby-changes:73271

From: Kevin <ko1@a...>
Date: Tue, 30 Aug 2022 01:07:30 +0900 (JST)
Subject: [ruby-changes:73271] cd7506593a (master): Fix tests on yjit_backend_ir for AArch64 backend (https://github.com/Shopify/ruby/pull/383)

https://git.ruby-lang.org/ruby.git/commit/?id=cd7506593a

From cd7506593ad6bd92dd330ba969e76ff8a1f5ee31 Mon Sep 17 00:00:00 2001
From: Kevin Newton <kddnewton@g...>
Date: Tue, 9 Aug 2022 10:28:19 -0400
Subject: Fix tests on yjit_backend_ir for AArch64 backend
 (https://github.com/Shopify/ruby/pull/383)

---
 yjit/src/backend/arm64/mod.rs | 4 ++--
 1 file 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 { https://github.com/ruby/ruby/blob/trunk/yjit/src/backend/arm64/mod.rs#L882
         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]
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]