From: Cerion Armour-Brown Date: Thu, 24 Feb 2005 14:57:12 +0000 (+0000) Subject: Fixed a rotate bug: IBM bit labelling got me again X-Git-Tag: svn/VALGRIND_3_0_1^2~377 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=12d61352fccea77ea1bf5d5dc423bb32ab21ecdc;p=thirdparty%2Fvalgrind.git Fixed a rotate bug: IBM bit labelling got me again git-svn-id: svn://svn.valgrind.org/vex/trunk@957 --- diff --git a/VEX/priv/guest-ppc32/toIR.c b/VEX/priv/guest-ppc32/toIR.c index 3ce34d3377..06f4bea359 100644 --- a/VEX/priv/guest-ppc32/toIR.c +++ b/VEX/priv/guest-ppc32/toIR.c @@ -1690,7 +1690,7 @@ static Bool dis_int_rot ( UInt theInstr ) UChar MaskEnd = toUChar((theInstr >> 1) & 0x1F); /* theInstr[1:5] */ UChar flag_Rc = toUChar((theInstr >> 0) & 1); /* theInstr[0] */ - UInt mask = MASK(MaskBegin, MaskEnd); + UInt mask = MASK(31-MaskBegin, 31-MaskEnd); IRTemp rot_amt = newTemp(Ity_I8); IRTemp Rs = newTemp(Ity_I32); IRTemp Ra = newTemp(Ity_I32);