mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix jumps (https://github.com/Shopify/ruby/pull/322)
This commit is contained in:
parent
7787ef29fe
commit
c83198911a
1 changed files with 1 additions and 1 deletions
|
@ -570,7 +570,7 @@ impl Assembler
|
|||
// 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!()
|
||||
|
|
Loading…
Add table
Reference in a new issue