emit_x64_floating_point: Correct dead-code warning in MSVC 2019
This commit is contained in:
parent
95a1ebfb97
commit
b8dd1c7510
1 changed files with 6 additions and 7 deletions
|
@ -1136,15 +1136,14 @@ static void EmitFPRSqrtEstimate(BlockOfCode& code, EmitContext& ctx, IR::Inst* i
|
||||||
code.SwitchToNearCode();
|
code.SwitchToNearCode();
|
||||||
|
|
||||||
ctx.reg_alloc.DefineValue(inst, result);
|
ctx.reg_alloc.DefineValue(inst, result);
|
||||||
return;
|
} else {
|
||||||
}
|
|
||||||
|
|
||||||
auto args = ctx.reg_alloc.GetArgumentInfo(inst);
|
auto args = ctx.reg_alloc.GetArgumentInfo(inst);
|
||||||
ctx.reg_alloc.HostCall(inst, args[0]);
|
ctx.reg_alloc.HostCall(inst, args[0]);
|
||||||
code.mov(code.ABI_PARAM2.cvt32(), ctx.FPCR().Value());
|
code.mov(code.ABI_PARAM2.cvt32(), ctx.FPCR().Value());
|
||||||
code.lea(code.ABI_PARAM3, code.ptr[code.r15 + code.GetJitStateInfo().offsetof_fpsr_exc]);
|
code.lea(code.ABI_PARAM3, code.ptr[code.r15 + code.GetJitStateInfo().offsetof_fpsr_exc]);
|
||||||
code.CallFunction(&FP::FPRSqrtEstimate<FPT>);
|
code.CallFunction(&FP::FPRSqrtEstimate<FPT>);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void EmitX64::EmitFPRSqrtEstimate16(EmitContext& ctx, IR::Inst* inst) {
|
void EmitX64::EmitFPRSqrtEstimate16(EmitContext& ctx, IR::Inst* inst) {
|
||||||
EmitFPRSqrtEstimate<16>(code, ctx, inst);
|
EmitFPRSqrtEstimate<16>(code, ctx, inst);
|
||||||
|
|
Loading…
Reference in a new issue