ruby-changes:73192
From: Kevin <ko1@a...>
Date: Tue, 30 Aug 2022 01:00:01 +0900 (JST)
Subject: [ruby-changes:73192] c83198911a (master): Fix jumps (https://github.com/Shopify/ruby/pull/322)
https://git.ruby-lang.org/ruby.git/commit/?id=c83198911a From c83198911a82c8dc6196fcfca073eb78822982f4 Mon Sep 17 00:00:00 2001 From: Kevin Newton <kddnewton@g...> Date: Fri, 15 Jul 2022 16:06:53 -0400 Subject: Fix jumps (https://github.com/Shopify/ruby/pull/322) --- yjit/src/backend/arm64/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yjit/src/backend/arm64/mod.rs b/yjit/src/backend/arm64/mod.rs index 153237a9b1..9539b907ea 100644 --- a/yjit/src/backend/arm64/mod.rs +++ b/yjit/src/backend/arm64/mod.rs @@ -570,7 +570,7 @@ impl Assembler https://github.com/ruby/ruby/blob/trunk/yjit/src/backend/arm64/mod.rs#L570 // to assume we can fit into a single b instruction. // It will panic otherwise. cb.label_ref(label_idx, 4, |cb, src_addr, dst_addr| { - b(cb, A64Opnd::new_imm((dst_addr - src_addr) / 4)); + b(cb, A64Opnd::new_imm((dst_addr - src_addr) / 4 + 1)); }); }, _ => unreachable!() -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/