emit_X64_floating_point: Near jmp to end instead of short jmp

Jump destination can be further than what can be reached in a short
jump under some FPCR options.
This commit is contained in:
MerryMage 2018-03-27 08:21:18 +01:00
parent b8d5765f9b
commit df4ee0f51e

View file

@ -478,7 +478,7 @@ void EmitX64::EmitFPMaxNumeric32(EmitContext& ctx, IR::Inst* inst) {
code.jnae(result_is_result);
// If result == QNaN && operand != NaN, result = operand.
code.movaps(result, operand);
code.jmp(end);
code.jmp(end, code.T_NEAR);
code.L(result_is_result);
code.movaps(operand, result);
@ -512,7 +512,7 @@ void EmitX64::EmitFPMaxNumeric64(EmitContext& ctx, IR::Inst* inst) {
code.jnae(result_is_result);
// If result == QNaN && operand != NaN, result = operand.
code.movaps(result, operand);
code.jmp(end);
code.jmp(end, code.T_NEAR);
code.L(result_is_result);
code.movaps(operand, result);