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

VEX/priv/ir/iropt.c

index ac1cad3d2b6c293b1a504f0ac359836daf5b221f..4c6b85a9ccf35bb5553dd6f70f4c064115343fc6 100644 (file)
@@ -521,6 +521,11 @@ static IRExpr* fold_Expr ( IRExpr* e )
                        ((UInt)(e->Iex.Binop.arg1->Iex.Const.con->Ico.U32)
                         <= (UInt)(e->Iex.Binop.arg2->Iex.Const.con->Ico.U32))));
                break;
+            case Iop_CmpLE32S:
+               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(