From 20ec4e9446d9b5bb6b54bfb6f371edc59a996b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kowalczyk?= Date: Wed, 30 Nov 2022 15:07:50 +0100 Subject: [PATCH] Fix nor.t output size in TriCore Sleigh --- Ghidra/Processors/tricore/data/languages/tricore.sinc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ghidra/Processors/tricore/data/languages/tricore.sinc b/Ghidra/Processors/tricore/data/languages/tricore.sinc index 4c1be52cee..ad2b7e301c 100644 --- a/Ghidra/Processors/tricore/data/languages/tricore.sinc +++ b/Ghidra/Processors/tricore/data/languages/tricore.sinc @@ -6824,9 +6824,9 @@ macro multiply_u_u(mres0, rega, regb, n) { # NOR.T D[c], D[a], pos1, D[b], pos2 (BIT) :nor.t Rd2831,Rd0811,const1620Z,Rd1215,const2327Z is PCPMode=0 & Rd0811 & Rd1215 & op0007=0x87 ; Rd2831 & const1620Z & const2327Z & op2122=0x2 { - local tmp = (Rd0811 >> const1620Z) & 1; - local tmp2 = (Rd1215 >> const2327Z) & 1; - Rd2831 = ~(tmp | tmp2); + local tmp = Rd0811 >> const1620Z; + local tmp2 = Rd1215 >> const2327Z; + Rd2831 = ~(tmp | tmp2) & 1; } @if defined(TRICORE_RIDER_B) || defined(TRICORE_RIDER_D) || defined(TRICORE_V2)