]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Reinstate the specialisation rule which first exposed the bug fixed by
authorJulian Seward <jseward@acm.org>
Fri, 6 May 2005 16:30:21 +0000 (16:30 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 6 May 2005 16:30:21 +0000 (16:30 +0000)
r1167.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1168

VEX/priv/guest-amd64/ghelpers.c

index 272b8fdd07407b243d3834adcdfd7138a3a4c6d3..abd672b1be25c660ebcad7f77db4c9ce0cbc30ed 100644 (file)
@@ -936,14 +936,13 @@ IRExpr* guest_amd64_spechelper ( HChar* function_name,
 
       /*---------------- SUBW ----------------*/
 
-      // CAUSES xedit not to work
-      //      if (isU64(cc_op, AMD64G_CC_OP_SUBW) && isU64(cond, AMD64CondZ)) {
-      //         /* word sub/cmp, then Z --> test dst==src */
-      //         return unop(Iop_1Uto64,
-      //                     binop(Iop_CmpEQ16, 
-      //                           unop(Iop_64to16,cc_dep1),
-      //                           unop(Iop_64to16,cc_dep2)));
-      //      }
+      if (isU64(cc_op, AMD64G_CC_OP_SUBW) && isU64(cond, AMD64CondZ)) {
+         /* word sub/cmp, then Z --> test dst==src */
+         return unop(Iop_1Uto64,
+                     binop(Iop_CmpEQ16, 
+                           unop(Iop_64to16,cc_dep1),
+                           unop(Iop_64to16,cc_dep2)));
+      }
 
       /*---------------- SUBB ----------------*/