optimise sub8; jo/jb
This commit is contained in:
parent
bb0f37bbce
commit
7d6a3c67e4
|
@ -996,10 +996,15 @@ fn gen_add32(ctx: &mut JitContext, dest_operand: &WasmLocal, source_operand: &Lo
|
|||
}
|
||||
|
||||
fn gen_sub8(ctx: &mut JitContext, dest_operand: &WasmLocal, source_operand: &LocalOrImmediate) {
|
||||
// TODO: Instruction::Sub
|
||||
ctx.current_instruction = Instruction::Arithmetic {
|
||||
ctx.current_instruction = Instruction::Sub {
|
||||
opsize: OPSIZE_8,
|
||||
dest: local_to_instruction_operand(ctx, dest_operand),
|
||||
source: if source_operand.eq_local(dest_operand) {
|
||||
InstructionOperand::Other // aliasing
|
||||
}
|
||||
else {
|
||||
source_operand.to_instruction_operand(ctx)
|
||||
},
|
||||
};
|
||||
|
||||
ctx.builder.const_i32(global_pointers::last_op1 as i32);
|
||||
|
|
Loading…
Reference in a new issue