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