From f5dd7122a25cec0f1a4fd44afd5ef6f90c63cde4 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sun, 21 Feb 2021 21:30:20 +0000 Subject: [PATCH] EmitFPVectorMulAdd: Correct optimization flag (Unsafe_UnfuseFMA -> Unsafe_InaccurateNaN) --- src/backend/x64/emit_x64_vector_floating_point.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/x64/emit_x64_vector_floating_point.cpp b/src/backend/x64/emit_x64_vector_floating_point.cpp index c7585436..9662f825 100644 --- a/src/backend/x64/emit_x64_vector_floating_point.cpp +++ b/src/backend/x64/emit_x64_vector_floating_point.cpp @@ -989,7 +989,7 @@ void EmitFPVectorMulAdd(BlockOfCode& code, EmitContext& ctx, IR::Inst* inst) { }; if constexpr (fsize != 16) { - if (code.HasFMA() && code.HasAVX() && ctx.HasOptimization(OptimizationFlag::Unsafe_UnfuseFMA)) { + if (code.HasFMA() && code.HasAVX() && ctx.HasOptimization(OptimizationFlag::Unsafe_InaccurateNaN)) { auto args = ctx.reg_alloc.GetArgumentInfo(inst); const bool fpcr_controlled = args[3].GetImmediateU1();