diff options
| author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2022-07-15 13:49:38 -0400 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-08-29 08:47:01 -0700 |
| commit | 95e5c5227c0492ed33fa41f31a698bf320d2b437 (patch) | |
| tree | 79462437ab2b8898ea9e0acd18a4f37faa8e82f6 | |
| parent | 34ec89252bf4bf1c841a82be4183a3dc40046355 (diff) | |
Fix bug with LeaLabel on x86, add CI test
| -rw-r--r-- | yjit/src/backend/x86_64/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yjit/src/backend/x86_64/mod.rs b/yjit/src/backend/x86_64/mod.rs index cb9d5be74a..0001d45977 100644 --- a/yjit/src/backend/x86_64/mod.rs +++ b/yjit/src/backend/x86_64/mod.rs @@ -262,7 +262,7 @@ impl Assembler Op::LeaLabel => { let label_idx = insn.target.unwrap().unwrap_label_idx(); - cb.label_ref(label_idx, 4, |cb, src_addr, dst_addr| { + cb.label_ref(label_idx, 7, |cb, src_addr, dst_addr| { let disp = dst_addr - src_addr; lea(cb, Self::SCRATCH0, mem_opnd(8, RIP, disp.try_into().unwrap())); }); @@ -270,7 +270,7 @@ impl Assembler mov(cb, insn.out.into(), Self::SCRATCH0); }, - // Push and pop to the C stack + // Push and pop to/from the C stack Op::CPush => push(cb, insn.opnds[0].into()), Op::CPop => pop(cb, insn.out.into()), Op::CPopInto => pop(cb, insn.opnds[0].into()), |
