]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix bug in generation of immediate shifts.
authorJulian Seward <jseward@acm.org>
Tue, 27 Jul 2004 10:50:38 +0000 (10:50 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 27 Jul 2004 10:50:38 +0000 (10:50 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@139

VEX/priv/host-x86/isel.c

index 4ed5a73e6347850e86b4d4e90a6b409ab648e827..4e6f57e26bf71b53a08953abf8baa4c977ad007e 100644 (file)
@@ -343,8 +343,8 @@ static HReg iselIntExpr_R ( ISelEnv* env, IRExpr* e )
             /* assert that the IR is well-typed */
             Int nshift;
             vassert(e->Iex.Binop.arg2->Iex.Const.con->tag == Ico_U8);
-           vassert(nshift >= 0);
             nshift = e->Iex.Binop.arg2->Iex.Const.con->Ico.U8;
+           vassert(nshift >= 0);
            if (nshift > 0)
                addInstr(env, X86Instr_Sh32(
                                 shOp,