]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Yet another folding rule (CmpLT32S)
authorJulian Seward <jseward@acm.org>
Tue, 19 Oct 2004 12:56:33 +0000 (12:56 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 19 Oct 2004 12:56:33 +0000 (12:56 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@368

VEX/priv/ir/iropt.c

index 4c6b85a9ccf35bb5553dd6f70f4c064115343fc6..096a706cf3f0ce4a005ea7d3609d097fee798bbe 100644 (file)
@@ -526,6 +526,11 @@ static IRExpr* fold_Expr ( IRExpr* e )
                        ((Int)(e->Iex.Binop.arg1->Iex.Const.con->Ico.U32)
                         <= (Int)(e->Iex.Binop.arg2->Iex.Const.con->Ico.U32))));
                break;
+            case Iop_CmpLT32S:
+               e2 = IRExpr_Const(IRConst_Bit(
+                       ((Int)(e->Iex.Binop.arg1->Iex.Const.con->Ico.U32)
+                        < (Int)(e->Iex.Binop.arg2->Iex.Const.con->Ico.U32))));
+               break;
 
             case Iop_32HLto64:
                e2 = IRExpr_Const(IRConst_U64(