From: Julian Seward Date: Wed, 10 Nov 2004 23:27:07 +0000 (+0000) Subject: Comment change, and remove some '#if 1's. X-Git-Tag: svn/VALGRIND_3_0_1^2~793 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0c5a331f1ed28c785a370a8b8c71ffe2e77163d;p=thirdparty%2Fvalgrind.git Comment change, and remove some '#if 1's. git-svn-id: svn://svn.valgrind.org/vex/trunk@541 --- diff --git a/VEX/priv/guest-x86/ghelpers.c b/VEX/priv/guest-x86/ghelpers.c index 41d416d6b0..db5ca8a525 100644 --- a/VEX/priv/guest-x86/ghelpers.c +++ b/VEX/priv/guest-x86/ghelpers.c @@ -658,7 +658,7 @@ IRExpr* x86guest_spechelper ( Char* function_name, return mkU32(0); } if (isU32(cc_op, CC_OP_DECL) || isU32(cc_op, CC_OP_INCL)) { - /* If the thunk is dec or inc, the cflag is supplied as CC_SRC. */ + /* If the thunk is dec or inc, the cflag is supplied as CC_NDEP. */ return cc_ndep; } # if 0 @@ -745,6 +745,7 @@ IRExpr* x86guest_spechelper ( Char* function_name, unop(Iop_32to8,cc_dep1), unop(Iop_32to8,cc_dep2))); } + if (isU32(cc_op, CC_OP_SUBB) && isU32(cond, CondNBE)) { /* long sub/cmp, then NBE (unsigned greater than) --> test src <=u dst */ @@ -761,12 +762,12 @@ IRExpr* x86guest_spechelper ( Char* function_name, /* long and/or/xor, then Z --> test dst==0 */ return unop(Iop_1Uto32,binop(Iop_CmpEQ32, cc_dep1, mkU32(0))); } -#if 1 + if (isU32(cc_op, CC_OP_LOGICL) && isU32(cond, CondS)) { /* long and/or/xor, then S --> test dst test dst == 0 */ return unop(Iop_1Uto32,binop(Iop_CmpEQ32, cc_dep1, mkU32(0))); } -#if 1 + if (isU32(cc_op, CC_OP_DECL) && isU32(cond, CondS)) { /* dec L, then S --> compare DST