diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.md | 48 |
2 files changed, 29 insertions, 24 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8f9ce4e..9d17775 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index ca71dd6..2f34481 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -4198,27 +4198,27 @@ || (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 ;; @@ -4478,27 +4478,27 @@ (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 ;; @@ -4525,27 +4525,27 @@ || (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 ;; @@ -4578,26 +4578,26 @@ || 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 ;; |