PowerPC: float compare should set great that flag, but not overflow

This commit is contained in:
Alexey Esaulenko 2021-03-14 22:32:34 +03:00 committed by ghidra1
parent f4c042544a
commit 62561121aa

View file

@ -138,7 +138,6 @@ define pcodeop ConvertFloatingPointFromUnsignedFraction;
}
# efscmpeq CRFD,rA,rB 010 1100 1110
#define pcodeop FloatingPointCompareEqual;
:efscmpeq CRFD,A,B is OP=4 & CRFD & A & B & XOP_0_10=0x2CE & BITS_21_22=0
{
CRFD[2,1] = A:4 f== B:4;
@ -148,14 +147,12 @@ define pcodeop ConvertFloatingPointFromUnsignedFraction;
# Page 415
# efscmpgt CRFD,rA,rB 010 1100 1100
#define pcodeop FloatingPointCompareGreaterThan;
:efscmpgt CRFD,A,B is OP=4 & CRFD & A & B & XOP_0_10=0x2CC & BITS_21_22=0
{
CRFD[2,1] = A:4 f> B:4;
}
# efscmplt CRFD,rA,rB 010 1100 1101
#define pcodeop FloatingPointCompareLessThan;
:efscmplt CRFD,A,B is OP=4 & CRFD & A & B & XOP_0_10=0x2CD & BITS_21_22=0
{
CRFD[2,1] = A:4 f< B:4;