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

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

From-SVN: r78658
This commit is contained in:
Kazu Hirata 2004-02-29 19:04:34 +00:00 committed by Kazu Hirata
parent a207f649ad
commit 2f537af9e7
2 changed files with 29 additions and 24 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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
;;