OSDN Git Service

* config/h8300/h8300.md: Tweak operand numbers of some
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Feb 2004 19:04:34 +0000 (19:04 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Feb 2004 19:04:34 +0000 (19:04 +0000)
peephole2's.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78658 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/h8300/h8300.md

index 8f9ce4e..9d17775 100644 (file)
@@ -1,5 +1,10 @@
 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
 
+       * config/h8300/h8300.md: Tweak operand numbers of some
+       peephole2's.
+
+2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
+
        * config/h8300/h8300.md: Tweak comments about peephole2's.
 
 2004-02-29  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
index ca71dd6..2f34481 100644 (file)
        || (TARGET_H8300S && INTVAL (operands[1]) == 3))"
   [(parallel [(set (match_dup 0)
                   (ashiftrt:HI (match_dup 0)
-                               (match_dup 5)))
+                               (match_dup 4)))
              (clobber (scratch:QI))])
    (set (cc0)
        (match_dup 0))
    (set (pc)
-       (if_then_else (match_dup 4)
+       (if_then_else (match_dup 5)
                      (label_ref (match_dup 3))
                      (pc)))]
   "switch (GET_CODE (operands[2]))
      {
      case GTU:
-       operands[4] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx);
+       operands[5] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx);
        break;
      case LEU:
-       operands[4] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx);
+       operands[5] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx);
        break;
      default:
-       operands[4] = operands[2];
+       operands[5] = operands[2];
        break;
      }
-   operands[5] = GEN_INT (exact_log2 (INTVAL (operands[1]) + 1));")
+   operands[4] = GEN_INT (exact_log2 (INTVAL (operands[1]) + 1));")
 
 ;; Transform
 ;;
        (match_dup 0))
    (parallel [(set (match_dup 4)
                   (ashiftrt:SI (match_dup 4)
-                               (match_dup 6)))
+                               (match_dup 5)))
              (clobber (scratch:QI))])
    (set (cc0)
        (match_dup 4))
    (set (pc)
-       (if_then_else (match_dup 5)
+       (if_then_else (match_dup 6)
                      (label_ref (match_dup 3))
                      (pc)))]
   "switch (GET_CODE (operands[2]))
      {
      case GTU:
-       operands[5] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx);
+       operands[6] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx);
        break;
      case LEU:
-       operands[5] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx);
+       operands[6] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx);
        break;
      default:
-       operands[5] = operands[2];
+       operands[6] = operands[2];
        break;
      }
-   operands[6] = GEN_INT (exact_log2 (INTVAL (operands[1]) + 1));")
+   operands[5] = GEN_INT (exact_log2 (INTVAL (operands[1]) + 1));")
 
 ;; Transform
 ;;
        || (TARGET_H8300S && INTVAL (operands[1]) == 3))"
   [(parallel [(set (match_dup 0)
                   (ashiftrt:SI (match_dup 0)
-                               (match_dup 5)))
+                               (match_dup 4)))
              (clobber (scratch:QI))])
    (set (cc0)
        (match_dup 0))
    (set (pc)
-       (if_then_else (match_dup 4)
+       (if_then_else (match_dup 5)
                      (label_ref (match_dup 3))
                      (pc)))]
   "switch (GET_CODE (operands[2]))
      {
      case GTU:
-       operands[4] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx);
+       operands[5] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx);
        break;
      case LEU:
-       operands[4] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx);
+       operands[5] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx);
        break;
      default:
-       operands[4] = operands[2];
+       operands[5] = operands[2];
        break;
      }
-   operands[5] = GEN_INT (exact_log2 (INTVAL (operands[1]) + 1));")
+   operands[4] = GEN_INT (exact_log2 (INTVAL (operands[1]) + 1));")
 
 ;; Transform
 ;;
        || INTVAL (operands[1]) == 255)"
   [(set (match_dup 0)
        (and:SI (match_dup 0)
-               (match_dup 5)))
+               (match_dup 4)))
    (set (cc0)
        (match_dup 0))
    (set (pc)
-       (if_then_else (match_dup 4)
+       (if_then_else (match_dup 5)
                      (label_ref (match_dup 3))
                      (pc)))]
   "switch (GET_CODE (operands[2]))
      {
      case GTU:
-       operands[4] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx);
+       operands[5] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx);
        break;
      case LEU:
-       operands[4] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx);
+       operands[5] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx);
        break;
      default:
-       operands[4] = operands[2];
+       operands[5] = operands[2];
        break;
      }
-   operands[5] = GEN_INT (~INTVAL (operands[1]));")
+   operands[4] = GEN_INT (~INTVAL (operands[1]));")
 
 ;; Transform
 ;;