From e7a5592699e2cabb093218dbc47cf06a8a8c1459 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sat, 22 Sep 2018 16:19:54 +0100 Subject: [PATCH] emit_x64_vector_floating_point: EmitFPVectorRoundInt: Use FCODE --- src/backend/x64/emit_x64_vector_floating_point.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/backend/x64/emit_x64_vector_floating_point.cpp b/src/backend/x64/emit_x64_vector_floating_point.cpp index a715c99e..4039554b 100644 --- a/src/backend/x64/emit_x64_vector_floating_point.cpp +++ b/src/backend/x64/emit_x64_vector_floating_point.cpp @@ -1094,11 +1094,7 @@ void EmitFPVectorRoundInt(BlockOfCode& code, EmitContext& ctx, IR::Inst* inst) { }(); EmitTwoOpVectorOperation(code, ctx, inst, [&](const Xbyak::Xmm& result, const Xbyak::Xmm& xmm_a){ - if constexpr (fsize == 32) { - code.roundps(result, xmm_a, round_imm); - } else { - code.roundpd(result, xmm_a, round_imm); - } + FCODE(roundp)(result, xmm_a, round_imm); }); return;