emit_x64_floating_point: Near jump instead of short jump in FPMinNumberic{32,64}

This commit is contained in:
MerryMage 2018-03-29 12:45:33 +01:00
parent 73b9e4b276
commit cdc5c3ad95

View file

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