]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix a few more HReg <-> UInt mixups.
authorFlorian Krohm <florian@eich-krohm.de>
Fri, 1 Feb 2013 16:11:51 +0000 (16:11 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Fri, 1 Feb 2013 16:11:51 +0000 (16:11 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@2673

VEX/priv/host_amd64_isel.c
VEX/priv/host_ppc_defs.c
VEX/priv/host_ppc_isel.c

index 6fe511dc7abf5a7e2f65bcbba5e2ed8c0d03c2aa..59df608533dff22b5228313d54053002a2ce5079 100644 (file)
@@ -3443,7 +3443,7 @@ static HReg iselVecExpr_wrk ( ISelEnv* env, IRExpr* e )
       HReg r0  = iselVecExpr(env, e->Iex.ITE.iffalse);
       HReg dst = newVRegV(env);
       addInstr(env, mk_vMOVsd_RR(r1,dst));
-      HReg cc  = iselCondCode(env, e->Iex.ITE.cond);
+      AMD64CondCode cc = iselCondCode(env, e->Iex.ITE.cond);
       addInstr(env, AMD64Instr_SseCMov(cc ^ 1, r0, dst));
       return dst;
    }
index 32e88fa5798283c96cc196202aa03485d3982a95..184620f02def8568353456e0fae917f883140cfa 100644 (file)
@@ -1827,7 +1827,7 @@ void ppPPCInstr ( PPCInstr* i, Bool mode64 )
       const HChar* str_size;
       if (i->Pin.AvLdSt.addr->tag == Pam_IR) {
          ppLoadImm(hregPPC_GPR30(mode64),
-                   i->Pin.AvLdSt.addr->Pam.RR.index, mode64);
+                   i->Pin.AvLdSt.addr->Pam.IR.index, mode64);
          vex_printf(" ; ");
       }
       str_size = sz==1 ? "eb" : sz==2 ? "eh" : sz==4 ? "ew" : "";
index 00a8cffb28aa76989cdb6916b83f5effae403e72..992acb52876b566f50af6e94b261637e7c0d1524 100644 (file)
@@ -2304,7 +2304,7 @@ static Bool sane_AMode ( ISelEnv* env, PPCAMode* am )
       return toBool( hregClass(am->Pam.RR.base) == HRcGPR(mode64) && 
                      hregIsVirtual(am->Pam.RR.base) &&
                      hregClass(am->Pam.RR.index) == HRcGPR(mode64) &&
-                     hregIsVirtual(am->Pam.IR.index) );
+                     hregIsVirtual(am->Pam.RR.index) );
    default:
       vpanic("sane_AMode: unknown ppc amode tag");
    }