]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
More floating-point tuning.
authorJulian Seward <jseward@acm.org>
Thu, 12 May 2005 02:14:52 +0000 (02:14 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 12 May 2005 02:14:52 +0000 (02:14 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@1192

VEX/priv/guest-amd64/ghelpers.c

index 5b830b92c3d8035b5044358eb82f640e87c3022c..885d267d658476b1345256fa56e2cc0c69561380 100644 (file)
@@ -1079,22 +1079,22 @@ IRExpr* guest_amd64_spechelper ( HChar* function_name,
             );
       }
       
-//..       if (isU32(cc_op, AMD64G_CC_OP_COPY) && isU32(cond, X86CondB)) {
-//..          /* COPY, then B --> extract C dep1, and test (C == 1). */
-//..          return
-//..             unop(
-//..                Iop_1Uto32,
-//..                binop(
-//..                   Iop_CmpNE32,
-//..                   binop(
-//..                      Iop_And32,
-//..                      binop(Iop_Shr32, cc_dep1, mkU8(AMD64G_CC_SHIFT_C)),
-//..                      mkU32(1)
-//..                   ),
-//..                   mkU32(0)
-//..                )
-//..             );
-//..       }
+      if (isU64(cc_op, AMD64G_CC_OP_COPY) && isU64(cond, AMD64CondB)) {
+         /* COPY, then B --> extract C dep1, and test (C == 1). */
+         return
+            unop(
+               Iop_1Uto64,
+               binop(
+                  Iop_CmpNE64,
+                  binop(
+                     Iop_And64,
+                     binop(Iop_Shr64, cc_dep1, mkU8(AMD64G_CC_SHIFT_C)),
+                     mkU64(1)
+                  ),
+                  mkU64(0)
+               )
+            );
+      }
 
       return NULL;
    }