Ghidra is a software reverse engineering (SRE) framework
PowerPC: Move isel instruction from quicciii.sinc to ppc_instructions.sinc
RobotsNeverDie6c0024067ff1
diff --git a/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc b/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sincindex 736c7cce31..02269a6a84 100644--- a/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc+++ b/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc@@ -2053,6 +2053,15 @@}@endif+:isel^CC_X_OPm D,RA_OR_ZERO,B,CC_X_OP is OP=31 & D & RA_OR_ZERO & B & CC_X_OP & CC_X_OPm & XOP_1_5=15+{+ local tmp:$(REGISTER_SIZE) = RA_OR_ZERO;+ D = B;+ if (!CC_X_OP) goto inst_next;+ D = tmp;+# D = (zext(CC_X_OP) * RA_OR_ZERO) + (zext(!CC_X_OP) * B);+}+#lbz r0,3(0) 0x88 00 00 03#lbz r0,3(r2) 0x88 02 00 03:lbz D,dPlusRaOrZeroAddress is $(NOTVLE) & OP=34 & D & dPlusRaOrZeroAddressdiff --git a/Ghidra/Processors/PowerPC/data/languages/quicciii.sinc b/Ghidra/Processors/PowerPC/data/languages/quicciii.sincindex c9958477e9..ab0250869f 100644--- a/Ghidra/Processors/PowerPC/data/languages/quicciii.sinc+++ b/Ghidra/Processors/PowerPC/data/languages/quicciii.sinc@@ -60,15 +60,6 @@ define pcodeop invalidateTLB;prefetchInstructionCacheBlockLockSetX(ea);}-:isel^CC_X_OPm D,RA_OR_ZERO,B,CC_X_OP is OP=31 & D & RA_OR_ZERO & B & CC_X_OP & CC_X_OPm & XOP_1_5=15-{- local tmp:$(REGISTER_SIZE) = RA_OR_ZERO;- D = B;- if (!CC_X_OP) goto inst_next;- D = tmp;-# D = (zext(CC_X_OP) * RA_OR_ZERO) + (zext(!CC_X_OP) * B);-}-#mfapidi r0,r1 #FIXME:mfapidi D,A is $(NOTVLE) & OP=31 & D & A & XOP_1_10=275{