Ghidra is a software reverse engineering (SRE) framework
x86: Fix issue with PACKUSWB when the value to convert is exactly 0x00ff
Sleigh-InSPECtor88454aca3889
diff --git a/Ghidra/Processors/x86/data/languages/ia.sinc b/Ghidra/Processors/x86/data/languages/ia.sincindex 3e2f0a6d80..4a33c4c34f 100644--- a/Ghidra/Processors/x86/data/languages/ia.sinc+++ b/Ghidra/Processors/x86/data/languages/ia.sinc@@ -6364,7 +6364,7 @@ define pcodeop packssdw;#otherwise ubyte = swordmacro sswub(sword, ubyte) {ubyte = (sword s> 0xff:2) * 0xff:1;- ubyte = ubyte + (sword s> 0:2) * (sword s< 0xff:2) * sword:1;+ ubyte = ubyte + (sword s> 0:2) * (sword s<= 0xff:2) * sword:1;}:PACKUSWB mmxreg, m64 is vexMode=0 & mandover=0 & byte=0x0F; byte=0x67; mmxreg ... & m64