Skip to content

Ghidra is a software reverse engineering (SRE) framework

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

Alexey Esaulenko62561121aa7c
diff --git a/Ghidra/Processors/PowerPC/data/languages/Scalar_SPFP.sinc b/Ghidra/Processors/PowerPC/data/languages/Scalar_SPFP.sinc
index f1c10dec52..6f812bcc43 100644
--- a/Ghidra/Processors/PowerPC/data/languages/Scalar_SPFP.sinc
+++ b/Ghidra/Processors/PowerPC/data/languages/Scalar_SPFP.sinc
@@ -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;