YJIT: implement codegen for rb_int_lshift (#8201)

* YJIT: implement codegen for rb_int_lshift

* Update yjit/src/asm/x86_64/mod.rs

Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>

---------

Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
This commit is contained in:
Maxime Chevalier-Boisvert 2023-08-11 11:01:16 -04:00 committed by GitHub
parent 475241ee91
commit a8cd18f08d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2023-08-11 15:01:37 +00:00
Merged-By: maximecb <maximecb@ruby-lang.org>
5 changed files with 36 additions and 16 deletions

View file

@ -544,6 +544,7 @@ impl Insn {
Insn::Jb(target) |
Insn::Je(target) |
Insn::Jl(target) |
Insn::Jg(target) |
Insn::Jmp(target) |
Insn::Jne(target) |
Insn::Jnz(target) |
@ -692,6 +693,7 @@ impl Insn {
Insn::Jb(target) |
Insn::Je(target) |
Insn::Jl(target) |
Insn::Jg(target) |
Insn::Jmp(target) |
Insn::Jne(target) |
Insn::Jnz(target) |
@ -1843,6 +1845,10 @@ impl Assembler {
self.push_insn(Insn::Jl(target));
}
pub fn jg(&mut self, target: Target) {
self.push_insn(Insn::Jg(target));
}
pub fn jmp(&mut self, target: Target) {
self.push_insn(Insn::Jmp(target));
}