From 7d5e078baa94f355734f6346b85a461d0153630a Mon Sep 17 00:00:00 2001 From: Merry Date: Wed, 13 Jul 2022 13:47:36 +0100 Subject: [PATCH] emit_x64_floating_point: MSVC fixup --- src/dynarmic/backend/x64/emit_x64_floating_point.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dynarmic/backend/x64/emit_x64_floating_point.cpp b/src/dynarmic/backend/x64/emit_x64_floating_point.cpp index 6c9b1fc2..772d0635 100644 --- a/src/dynarmic/backend/x64/emit_x64_floating_point.cpp +++ b/src/dynarmic/backend/x64/emit_x64_floating_point.cpp @@ -471,7 +471,6 @@ template static void EmitFPMinMaxNumeric(BlockOfCode& code, EmitContext& ctx, IR::Inst* inst) { using FPT = mcl::unsigned_integer_of_size; constexpr FPT default_nan = FP::FPInfo::DefaultNaN(); - constexpr u8 mantissa_msb_bit = static_cast(FP::FPInfo::explicit_mantissa_width - 1); auto args = ctx.reg_alloc.GetArgumentInfo(inst); @@ -516,6 +515,8 @@ static void EmitFPMinMaxNumeric(BlockOfCode& code, EmitContext& ctx, IR::Inst* i ctx.deferred_emits.emplace_back([=, &code, &ctx] { Xbyak::Label nan, op2_is_nan, snan, maybe_both_nan; + constexpr u8 mantissa_msb_bit = static_cast(FP::FPInfo::explicit_mantissa_width - 1); + code.L(*z); code.jp(nan); if constexpr (is_max) {