summaryrefslogtreecommitdiff
path: root/yjit/src/backend/x86_64/mod.rs
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2022-07-15 16:14:55 -0400
committerTakashi Kokubun <[email protected]>2022-08-29 08:47:01 -0700
commit0da253e72cc80c1dbf8517f5217b59a64ec0f44e (patch)
tree7eb3cb61dbb2b4b23c8e4da81a6d7bbe40f35fb5 /yjit/src/backend/x86_64/mod.rs
parentbf7277b518d5ab634ee708f54fbb8735a8eafdbc (diff)
Port print_int to the new backend (https://github.com/Shopify/ruby/pull/321)
* Port print_int to the new backend * Tests for print_int and print_str
Diffstat (limited to 'yjit/src/backend/x86_64/mod.rs')
-rw-r--r--yjit/src/backend/x86_64/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/yjit/src/backend/x86_64/mod.rs b/yjit/src/backend/x86_64/mod.rs
index 0001d45977..31a907b55e 100644
--- a/yjit/src/backend/x86_64/mod.rs
+++ b/yjit/src/backend/x86_64/mod.rs
@@ -253,6 +253,10 @@ impl Assembler
}
},
+ Op::LoadSExt => {
+ movsx(cb, insn.out.into(), insn.opnds[0].into())
+ },
+
Op::Mov => mov(cb, insn.opnds[0].into(), insn.opnds[1].into()),
// Load effective address