]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
alpha.c (alpha_emit_conditional_move): Always swap GE/GT if its an fp comparison.
authorRichard Henderson <rth@gcc.gnu.org>
Wed, 25 Jul 2001 17:34:04 +0000 (10:34 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 25 Jul 2001 17:34:04 +0000 (10:34 -0700)
        * config/alpha/alpha.c (alpha_emit_conditional_move): Always
        swap GE/GT if its an fp comparison.

From-SVN: r44360

gcc/ChangeLog
gcc/config/alpha/alpha.c

index a867ed71d888118b6f522f2625b2b5cb06ab046b..3e9f613975bfa5f117de6dda5cb08c0230220a23 100644 (file)
@@ -1,4 +1,9 @@
-2001-07-19  Andrew Haley  <aph@cambridge.redhat.com>
+2001-07-25  Richard Henderson  <rth@redhat.com>
+
+       * config/alpha/alpha.c (alpha_emit_conditional_move): Always
+       swap GE/GT if its an fp comparison.
+
+2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
 
        * alias.c (rtx_equal_for_memref_p): Allow strings as types in
        operands.
index 1abf97b5a46a77bb21eee2b1ff7eb0099cb492f3..d36adcc000f0ce2ad936b97a2c2a33d2c05db5b4 100644 (file)
@@ -1905,7 +1905,7 @@ alpha_emit_setcc (code)
       break;
 
     case GE:  case GT: case GEU:  case GTU:
-      /* These are normally need swapping, but for integer zero we have
+      /* These normally need swapping, but for integer zero we have
         special patterns that recognize swapped operands.  */
       if (!fp_p && op1 == const0_rtx)
        break;
@@ -1996,8 +1996,9 @@ alpha_emit_conditional_move (cmp, mode)
          break;
 
        case GE: case GT: case GEU: case GTU:
-         /* These must be swapped.  */
-         if (op1 == CONST0_RTX (cmp_mode))
+         /* These normally need swapping, but for integer zero we have
+            special patterns that recognize swapped operands.  */
+         if (!fp_p && op1 == const0_rtx)
            cmp_code = code, code = NE;
          else
            {