emit_x64_vector_floating_point: EmitFPVectorRoundInt: Use FCODE
This commit is contained in:
parent
b8fde48732
commit
e7a5592699
@ -1094,11 +1094,7 @@ void EmitFPVectorRoundInt(BlockOfCode& code, EmitContext& ctx, IR::Inst* inst) {
|
|||||||
}();
|
}();
|
||||||
|
|
||||||
EmitTwoOpVectorOperation<fsize, DefaultIndexer>(code, ctx, inst, [&](const Xbyak::Xmm& result, const Xbyak::Xmm& xmm_a){
|
EmitTwoOpVectorOperation<fsize, DefaultIndexer>(code, ctx, inst, [&](const Xbyak::Xmm& result, const Xbyak::Xmm& xmm_a){
|
||||||
if constexpr (fsize == 32) {
|
FCODE(roundp)(result, xmm_a, round_imm);
|
||||||
code.roundps(result, xmm_a, round_imm);
|
|
||||||
} else {
|
|
||||||
code.roundpd(result, xmm_a, round_imm);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user