https://bugs.kde.org/show_bug.cgi?id=523096

--- Comment #6 from Mark Wielaard <[email protected]> ---
+static IRExpr* getIReg32 ( Int sz, UInt archreg )
+{
+   vassert(sz == 1 || sz == 2 || sz == 4);
+   vassert(archreg < 8);
+   vassert(host_endness == VexEndnessLE);
+   return unop(Iop_64to32,
+               IRExpr_Get( integerGuestRegOffset(sz,archreg),
+                           Ity_I64 ));
+}

Can't you use the getIReg function (defined just above).
And then in the PINSRB decoder change
-         assign( new8, unop(Iop_32to8, getIReg32(sz, rE)) );
+         assign( new8, unop(Iop_16to8, getIReg(sz, rE)) );

(sz is always 2 here, so getIReg will return an Iop_16)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to