From c91d117187e18a4a3d089bb23bf15e99632fb9e9 Mon Sep 17 00:00:00 2001 From: Greg Hogan Date: Mon, 25 Oct 2021 21:04:22 -0700 Subject: [PATCH] fix efscmp* and efstst* instructions --- .../PowerPC/data/languages/Scalar_SPFP.sinc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Ghidra/Processors/PowerPC/data/languages/Scalar_SPFP.sinc b/Ghidra/Processors/PowerPC/data/languages/Scalar_SPFP.sinc index a0b8aac192..f1c10dec52 100644 --- a/Ghidra/Processors/PowerPC/data/languages/Scalar_SPFP.sinc +++ b/Ghidra/Processors/PowerPC/data/languages/Scalar_SPFP.sinc @@ -141,7 +141,7 @@ define pcodeop ConvertFloatingPointFromUnsignedFraction; #define pcodeop FloatingPointCompareEqual; :efscmpeq CRFD,A,B is OP=4 & CRFD & A & B & XOP_0_10=0x2CE & BITS_21_22=0 { - CRFD = A:4 f== B:4; + CRFD[2,1] = A:4 f== B:4; } # ================================================================= @@ -151,14 +151,14 @@ define pcodeop ConvertFloatingPointFromUnsignedFraction; #define pcodeop FloatingPointCompareGreaterThan; :efscmpgt CRFD,A,B is OP=4 & CRFD & A & B & XOP_0_10=0x2CC & BITS_21_22=0 { - CRFD = A:4 f> B:4; + 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 = A:4 f< B:4; + CRFD[2,1] = A:4 f< B:4; } # efsctsf rT,rB 010 1101 0111 @@ -451,14 +451,14 @@ define pcodeop ConvertFloatingPointFromUnsignedFraction; #define pcodeop FloatingPointTestEqual; :efststeq CRFD,A,B is OP=4 & CRFD & A & B & XOP_0_10=0x2DE & BITS_21_22=0 { - CRFD = A:4 f== B:4; + CRFD[2,1] = A:4 f== B:4; } # efststgt CRFD,rA,rB 010 1101 1100 #define pcodeop FloatingPointTestGreaterThan; :efststgt CRFD,A,B is OP=4 & CRFD & A & B & XOP_0_10=0x2DC & BITS_21_22=0 { - CRFD = A:4 f> B:4; + CRFD[2,1] = A:4 f> B:4; } # ================================================================= @@ -468,5 +468,5 @@ define pcodeop ConvertFloatingPointFromUnsignedFraction; #define pcodeop FloatingPointTestLessThan; :efststlt CRFD,A,B is OP=4 & CRFD & A & B & XOP_0_10=0x2DD & BITS_21_22=0 { - CRFD = A:4 f< B:4; + CRFD[2,1] = A:4 f< B:4; }