JitArm64: Use immediates more in fres routine
Not sure why I didn't do this to begin with. Maybe I was under the impression that the most significant bit of a 12-bit immediate was a sign bit.
This commit is contained in:
parent
89e7e7d669
commit
5b5124d9ff
|
@ -287,8 +287,7 @@ void JitArm64::GenerateFres()
|
|||
CMP(ARM64Reg::X2, 895);
|
||||
FixupBranch small_exponent = B(CCFlags::CC_LO);
|
||||
|
||||
MOVI2R(ARM64Reg::X4, 1148LL);
|
||||
CMP(ARM64Reg::X2, ARM64Reg::X4);
|
||||
CMP(ARM64Reg::X2, 1148);
|
||||
FixupBranch large_exponent = B(CCFlags::CC_HI);
|
||||
|
||||
UBFX(ARM64Reg::X2, ARM64Reg::X1, 47, 5); // Grab upper part of mantissa
|
||||
|
@ -320,8 +319,7 @@ void JitArm64::GenerateFres()
|
|||
RET();
|
||||
|
||||
SetJumpTarget(large_exponent);
|
||||
MOVI2R(ARM64Reg::X4, 0x7FF);
|
||||
CMP(ARM64Reg::X2, ARM64Reg::X4);
|
||||
CMP(ARM64Reg::X2, 0x7FF);
|
||||
CSEL(ARM64Reg::X0, ARM64Reg::X0, ARM64Reg::X3, CCFlags::CC_EQ);
|
||||
RET();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue