]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fixed a rotate bug: IBM bit labelling got me again
authorCerion Armour-Brown <cerion@valgrind.org>
Thu, 24 Feb 2005 14:57:12 +0000 (14:57 +0000)
committerCerion Armour-Brown <cerion@valgrind.org>
Thu, 24 Feb 2005 14:57:12 +0000 (14:57 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@957

VEX/priv/guest-ppc32/toIR.c

index 3ce34d33775d824f0aef0ea8a51e2eaf63169752..06f4bea359882d0e75e110f12eb366010d908b12 100644 (file)
@@ -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);