Commit cf8d1126 authored by qinsoon's avatar qinsoon

fix last commit, inst name is shl instead of shld

parent 40a91786
Pipeline #50 failed with stage
in 9 minutes and 28 seconds
...@@ -1790,8 +1790,8 @@ impl CodeGenerator for ASMCodeGen { ...@@ -1790,8 +1790,8 @@ impl CodeGenerator for ASMCodeGen {
) )
} }
fn emit_shld_r64_cl (&mut self, dest: &P<Value>) { fn emit_shl_r64_cl (&mut self, dest: &P<Value>) {
trace!("emit shld {}, CL -> {}", dest, dest); trace!("emit shl {}, CL -> {}", dest, dest);
let (reg1, id1, loc1) = self.prepare_reg(dest, 4 + 1 + 3 + 1); let (reg1, id1, loc1) = self.prepare_reg(dest, 4 + 1 + 3 + 1);
let rcx = self.prepare_machine_reg(&x86_64::RCX); let rcx = self.prepare_machine_reg(&x86_64::RCX);
...@@ -1811,8 +1811,8 @@ impl CodeGenerator for ASMCodeGen { ...@@ -1811,8 +1811,8 @@ impl CodeGenerator for ASMCodeGen {
) )
} }
fn emit_shld_mem64_cl (&mut self, dest: &P<Value>) { fn emit_shl_mem64_cl (&mut self, dest: &P<Value>) {
trace!("emit shld {}, CL -> {}", dest, dest); trace!("emit shl {}, CL -> {}", dest, dest);
let (mem, mut uses) = self.prepare_mem(dest, 4 + 1 + 3 + 1); let (mem, mut uses) = self.prepare_mem(dest, 4 + 1 + 3 + 1);
let rcx = self.prepare_machine_reg(&x86_64::RCX); let rcx = self.prepare_machine_reg(&x86_64::RCX);
...@@ -1831,8 +1831,8 @@ impl CodeGenerator for ASMCodeGen { ...@@ -1831,8 +1831,8 @@ impl CodeGenerator for ASMCodeGen {
) )
} }
fn emit_shld_r64_imm8 (&mut self, dest: &P<Value>, src: i8) { fn emit_shl_r64_imm8 (&mut self, dest: &P<Value>, src: i8) {
trace!("emit shld {},{} -> {}", dest, src, dest); trace!("emit shl {},{} -> {}", dest, src, dest);
let (reg1, id1, loc1) = self.prepare_reg(dest, 4 + 1 + 1 + src.to_string().len() + 1); let (reg1, id1, loc1) = self.prepare_reg(dest, 4 + 1 + 1 + src.to_string().len() + 1);
...@@ -1850,8 +1850,8 @@ impl CodeGenerator for ASMCodeGen { ...@@ -1850,8 +1850,8 @@ impl CodeGenerator for ASMCodeGen {
) )
} }
fn emit_shld_mem64_imm8(&mut self, dest: &P<Value>, src: i8) { fn emit_shl_mem64_imm8(&mut self, dest: &P<Value>, src: i8) {
trace!("emit shld {},{} -> {}", dest, src, dest); trace!("emit shl {},{} -> {}", dest, src, dest);
let (mem, mut uses) = self.prepare_mem(dest, 4 + 1 + 1 + src.to_string().len() + 1); let (mem, mut uses) = self.prepare_mem(dest, 4 + 1 + 1 + src.to_string().len() + 1);
......
...@@ -64,10 +64,10 @@ pub trait CodeGenerator { ...@@ -64,10 +64,10 @@ pub trait CodeGenerator {
fn emit_idiv_r64 (&mut self, src: &P<Value>); fn emit_idiv_r64 (&mut self, src: &P<Value>);
fn emit_idiv_mem64(&mut self, src: &P<Value>); fn emit_idiv_mem64(&mut self, src: &P<Value>);
fn emit_shld_r64_cl (&mut self, dest: &P<Value>); fn emit_shl_r64_cl (&mut self, dest: &P<Value>);
fn emit_shld_mem64_cl (&mut self, dest: &P<Value>); fn emit_shl_mem64_cl (&mut self, dest: &P<Value>);
fn emit_shld_r64_imm8 (&mut self, dest: &P<Value>, src: i8); fn emit_shl_r64_imm8 (&mut self, dest: &P<Value>, src: i8);
fn emit_shld_mem64_imm8(&mut self, dest: &P<Value>, src: i8); fn emit_shl_mem64_imm8(&mut self, dest: &P<Value>, src: i8);
fn emit_cqo(&mut self); fn emit_cqo(&mut self);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment