diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2022-07-07 12:35:18 -0400 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-08-29 08:46:59 -0700 |
commit | 580f26959eb31d523ac21d640e21ddbe70779512 (patch) | |
tree | 8a2ae18c1ebe1e24b961d0696db85a73f30ad3ea /yjit/src/backend | |
parent | 65019ed60c635b34337ea35978e931d09ab0181b (diff) | |
download | ruby-580f26959eb31d523ac21d640e21ddbe70779512.tar.gz |
Get started on branchunless port
Diffstat (limited to 'yjit/src/backend')
-rw-r--r-- | yjit/src/backend/ir.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/yjit/src/backend/ir.rs b/yjit/src/backend/ir.rs index bdefe1c6bc..2d68936db1 100644 --- a/yjit/src/backend/ir.rs +++ b/yjit/src/backend/ir.rs @@ -251,6 +251,12 @@ impl From<u64> for Opnd { } } +impl From<i64> for Opnd { + fn from(value: i64) -> Self { + Opnd::Imm(value.try_into().unwrap()) + } +} + impl From<i32> for Opnd { fn from(value: i32) -> Self { Opnd::Imm(value.try_into().unwrap()) |