emit_x64_floating_point: MSVC fixup
This commit is contained in:
parent
11ba75b7f0
commit
7d5e078baa
1 changed files with 2 additions and 1 deletions
|
@ -471,7 +471,6 @@ template<size_t fsize, bool is_max>
|
||||||
static void EmitFPMinMaxNumeric(BlockOfCode& code, EmitContext& ctx, IR::Inst* inst) {
|
static void EmitFPMinMaxNumeric(BlockOfCode& code, EmitContext& ctx, IR::Inst* inst) {
|
||||||
using FPT = mcl::unsigned_integer_of_size<fsize>;
|
using FPT = mcl::unsigned_integer_of_size<fsize>;
|
||||||
constexpr FPT default_nan = FP::FPInfo<FPT>::DefaultNaN();
|
constexpr FPT default_nan = FP::FPInfo<FPT>::DefaultNaN();
|
||||||
constexpr u8 mantissa_msb_bit = static_cast<u8>(FP::FPInfo<FPT>::explicit_mantissa_width - 1);
|
|
||||||
|
|
||||||
auto args = ctx.reg_alloc.GetArgumentInfo(inst);
|
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] {
|
ctx.deferred_emits.emplace_back([=, &code, &ctx] {
|
||||||
Xbyak::Label nan, op2_is_nan, snan, maybe_both_nan;
|
Xbyak::Label nan, op2_is_nan, snan, maybe_both_nan;
|
||||||
|
|
||||||
|
constexpr u8 mantissa_msb_bit = static_cast<u8>(FP::FPInfo<FPT>::explicit_mantissa_width - 1);
|
||||||
|
|
||||||
code.L(*z);
|
code.L(*z);
|
||||||
code.jp(nan);
|
code.jp(nan);
|
||||||
if constexpr (is_max) {
|
if constexpr (is_max) {
|
||||||
|
|
Loading…
Reference in a new issue