Commit 2f537af9 by Kazu Hirata Committed by Kazu Hirata

h8300.md: Tweak operand numbers of some peephole2's.

	* config/h8300/h8300.md: Tweak operand numbers of some
	peephole2's.

From-SVN: r78658
parent a207f649
2004-02-29 Kazu Hirata <kazu@cs.umass.edu> 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. * config/h8300/h8300.md: Tweak comments about peephole2's.
2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl> 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
......
...@@ -4198,27 +4198,27 @@ ...@@ -4198,27 +4198,27 @@
|| (TARGET_H8300S && INTVAL (operands[1]) == 3))" || (TARGET_H8300S && INTVAL (operands[1]) == 3))"
[(parallel [(set (match_dup 0) [(parallel [(set (match_dup 0)
(ashiftrt:HI (match_dup 0) (ashiftrt:HI (match_dup 0)
(match_dup 5))) (match_dup 4)))
(clobber (scratch:QI))]) (clobber (scratch:QI))])
(set (cc0) (set (cc0)
(match_dup 0)) (match_dup 0))
(set (pc) (set (pc)
(if_then_else (match_dup 4) (if_then_else (match_dup 5)
(label_ref (match_dup 3)) (label_ref (match_dup 3))
(pc)))] (pc)))]
"switch (GET_CODE (operands[2])) "switch (GET_CODE (operands[2]))
{ {
case GTU: case GTU:
operands[4] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx); operands[5] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx);
break; break;
case LEU: case LEU:
operands[4] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx); operands[5] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx);
break; break;
default: default:
operands[4] = operands[2]; operands[5] = operands[2];
break; break;
} }
operands[5] = GEN_INT (exact_log2 (INTVAL (operands[1]) + 1));") operands[4] = GEN_INT (exact_log2 (INTVAL (operands[1]) + 1));")
;; Transform ;; Transform
;; ;;
...@@ -4478,27 +4478,27 @@ ...@@ -4478,27 +4478,27 @@
(match_dup 0)) (match_dup 0))
(parallel [(set (match_dup 4) (parallel [(set (match_dup 4)
(ashiftrt:SI (match_dup 4) (ashiftrt:SI (match_dup 4)
(match_dup 6))) (match_dup 5)))
(clobber (scratch:QI))]) (clobber (scratch:QI))])
(set (cc0) (set (cc0)
(match_dup 4)) (match_dup 4))
(set (pc) (set (pc)
(if_then_else (match_dup 5) (if_then_else (match_dup 6)
(label_ref (match_dup 3)) (label_ref (match_dup 3))
(pc)))] (pc)))]
"switch (GET_CODE (operands[2])) "switch (GET_CODE (operands[2]))
{ {
case GTU: case GTU:
operands[5] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx); operands[6] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx);
break; break;
case LEU: case LEU:
operands[5] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx); operands[6] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx);
break; break;
default: default:
operands[5] = operands[2]; operands[6] = operands[2];
break; break;
} }
operands[6] = GEN_INT (exact_log2 (INTVAL (operands[1]) + 1));") operands[5] = GEN_INT (exact_log2 (INTVAL (operands[1]) + 1));")
;; Transform ;; Transform
;; ;;
...@@ -4525,27 +4525,27 @@ ...@@ -4525,27 +4525,27 @@
|| (TARGET_H8300S && INTVAL (operands[1]) == 3))" || (TARGET_H8300S && INTVAL (operands[1]) == 3))"
[(parallel [(set (match_dup 0) [(parallel [(set (match_dup 0)
(ashiftrt:SI (match_dup 0) (ashiftrt:SI (match_dup 0)
(match_dup 5))) (match_dup 4)))
(clobber (scratch:QI))]) (clobber (scratch:QI))])
(set (cc0) (set (cc0)
(match_dup 0)) (match_dup 0))
(set (pc) (set (pc)
(if_then_else (match_dup 4) (if_then_else (match_dup 5)
(label_ref (match_dup 3)) (label_ref (match_dup 3))
(pc)))] (pc)))]
"switch (GET_CODE (operands[2])) "switch (GET_CODE (operands[2]))
{ {
case GTU: case GTU:
operands[4] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx); operands[5] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx);
break; break;
case LEU: case LEU:
operands[4] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx); operands[5] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx);
break; break;
default: default:
operands[4] = operands[2]; operands[5] = operands[2];
break; break;
} }
operands[5] = GEN_INT (exact_log2 (INTVAL (operands[1]) + 1));") operands[4] = GEN_INT (exact_log2 (INTVAL (operands[1]) + 1));")
;; Transform ;; Transform
;; ;;
...@@ -4578,26 +4578,26 @@ ...@@ -4578,26 +4578,26 @@
|| INTVAL (operands[1]) == 255)" || INTVAL (operands[1]) == 255)"
[(set (match_dup 0) [(set (match_dup 0)
(and:SI (match_dup 0) (and:SI (match_dup 0)
(match_dup 5))) (match_dup 4)))
(set (cc0) (set (cc0)
(match_dup 0)) (match_dup 0))
(set (pc) (set (pc)
(if_then_else (match_dup 4) (if_then_else (match_dup 5)
(label_ref (match_dup 3)) (label_ref (match_dup 3))
(pc)))] (pc)))]
"switch (GET_CODE (operands[2])) "switch (GET_CODE (operands[2]))
{ {
case GTU: case GTU:
operands[4] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx); operands[5] = gen_rtx_NE (VOIDmode, cc0_rtx, const0_rtx);
break; break;
case LEU: case LEU:
operands[4] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx); operands[5] = gen_rtx_EQ (VOIDmode, cc0_rtx, const0_rtx);
break; break;
default: default:
operands[4] = operands[2]; operands[5] = operands[2];
break; break;
} }
operands[5] = GEN_INT (~INTVAL (operands[1]));") operands[4] = GEN_INT (~INTVAL (operands[1]));")
;; Transform ;; Transform
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment