X64: Port fpromote to ISLE (#4230)

This commit is contained in:
Johnnie Birch
2022-06-06 14:47:44 -07:00
committed by GitHub
parent 6df56e6aa6
commit 3f152273d3
3 changed files with 12 additions and 5 deletions

View File

@@ -1041,11 +1041,7 @@ fn lower_insn_to_regs<C: LowerCtx<I = Inst>>(
}
Opcode::Fpromote => {
// We can't guarantee the RHS (if a load) is 128-bit aligned, so we
// must avoid merging a load here.
let src = RegMem::reg(put_input_in_reg(ctx, inputs[0]));
let dst = get_output_reg(ctx, outputs[0]).only_reg().unwrap();
ctx.emit(Inst::xmm_unary_rm_r(SseOpcode::Cvtss2sd, src, dst));
implemented_in_isle(ctx);
}
Opcode::FvpromoteLow => {