mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
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:
parent
475241ee91
commit
a8cd18f08d
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
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue