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:
parent
b8d5765f9b
commit
df4ee0f51e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue