From: Julian Seward Date: Tue, 19 Oct 2004 01:25:02 +0000 (+0000) Subject: Yet another folding rule. X-Git-Tag: svn/VALGRIND_3_0_1^2~967 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b23d84cd2159f20f409275eb6ad770543ebab46d;p=thirdparty%2Fvalgrind.git Yet another folding rule. git-svn-id: svn://svn.valgrind.org/vex/trunk@367 --- diff --git a/VEX/priv/ir/iropt.c b/VEX/priv/ir/iropt.c index ac1cad3d2b..4c6b85a9cc 100644 --- a/VEX/priv/ir/iropt.c +++ b/VEX/priv/ir/iropt.c @@ -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(