Commit 6dc50366 by Kazu Hirata Committed by Kazu Hirata

h8300.md (cmpqi): Remove mode from compare.

	* config/h8300/h8300.md (cmpqi): Remove mode from compare.
	(cmphi): Likewise.
	(*cmphi_h8300): Likewise.
	(*cmphi_h8300hs): Likewise.
	(cmpsi): Likewise.
	(7 peephole2): Likewise.

From-SVN: r62996
parent 7a017610
2003-02-17 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md (cmpqi): Remove mode from compare.
(cmphi): Likewise.
(*cmphi_h8300): Likewise.
(*cmphi_h8300hs): Likewise.
(cmpsi): Likewise.
(7 peephole2): Likewise.
Sun Feb 16 23:07:52 CET 2003 Jan Hubicka <jh@suse.cz> Sun Feb 16 23:07:52 CET 2003 Jan Hubicka <jh@suse.cz>
* c-typeck.c (build_c_cast): Fold constant variables into * c-typeck.c (build_c_cast): Fold constant variables into
......
...@@ -703,7 +703,7 @@ ...@@ -703,7 +703,7 @@
(define_insn "cmpqi" (define_insn "cmpqi"
[(set (cc0) [(set (cc0)
(compare:QI (match_operand:QI 0 "register_operand" "r") (compare (match_operand:QI 0 "register_operand" "r")
(match_operand:QI 1 "nonmemory_operand" "rn")))] (match_operand:QI 1 "nonmemory_operand" "rn")))]
"" ""
"cmp.b %X1,%X0" "cmp.b %X1,%X0"
...@@ -712,7 +712,7 @@ ...@@ -712,7 +712,7 @@
(define_expand "cmphi" (define_expand "cmphi"
[(set (cc0) [(set (cc0)
(compare:HI (match_operand:HI 0 "register_operand" "") (compare (match_operand:HI 0 "register_operand" "")
(match_operand:HI 1 "nonmemory_operand" "")))] (match_operand:HI 1 "nonmemory_operand" "")))]
"" ""
" "
...@@ -723,18 +723,18 @@ ...@@ -723,18 +723,18 @@
operands[1] = force_reg (HImode, operands[1]); operands[1] = force_reg (HImode, operands[1]);
}") }")
(define_insn "" (define_insn "*cmphi_h8300"
[(set (cc0) [(set (cc0)
(compare:HI (match_operand:HI 0 "register_operand" "r") (compare (match_operand:HI 0 "register_operand" "r")
(match_operand:HI 1 "register_operand" "r")))] (match_operand:HI 1 "register_operand" "r")))]
"TARGET_H8300" "TARGET_H8300"
"cmp.w %T1,%T0" "cmp.w %T1,%T0"
[(set_attr "length" "2") [(set_attr "length" "2")
(set_attr "cc" "compare")]) (set_attr "cc" "compare")])
(define_insn "" (define_insn "*cmphi_h8300hs"
[(set (cc0) [(set (cc0)
(compare:HI (match_operand:HI 0 "register_operand" "r,r") (compare (match_operand:HI 0 "register_operand" "r,r")
(match_operand:HI 1 "nonmemory_operand" "r,n")))] (match_operand:HI 1 "nonmemory_operand" "r,n")))]
"TARGET_H8300H || TARGET_H8300S" "TARGET_H8300H || TARGET_H8300S"
"cmp.w %T1,%T0" "cmp.w %T1,%T0"
...@@ -743,7 +743,7 @@ ...@@ -743,7 +743,7 @@
(define_insn "cmpsi" (define_insn "cmpsi"
[(set (cc0) [(set (cc0)
(compare:SI (match_operand:SI 0 "register_operand" "r,r") (compare (match_operand:SI 0 "register_operand" "r,r")
(match_operand:SI 1 "nonmemory_operand" "r,i")))] (match_operand:SI 1 "nonmemory_operand" "r,i")))]
"TARGET_H8300H || TARGET_H8300S" "TARGET_H8300H || TARGET_H8300S"
"cmp.l %S1,%S0" "cmp.l %S1,%S0"
...@@ -3446,7 +3446,7 @@ ...@@ -3446,7 +3446,7 @@
(pc)))] (pc)))]
"") "")
;; (compare:SI (reg) (const_int)) takes 6 bytes, so we try to achieve ;; (compare (reg:SI) (const_int)) takes 6 bytes, so we try to achieve
;; the equivalent with shorter sequences. Here is the summary. ;; the equivalent with shorter sequences. Here is the summary.
;; ;;
;; reg const_int use insn ;; reg const_int use insn
...@@ -3481,7 +3481,7 @@ ...@@ -3481,7 +3481,7 @@
(define_peephole2 (define_peephole2
[(set (cc0) [(set (cc0)
(compare:HI (match_operand:HI 0 "register_operand" "") (compare (match_operand:HI 0 "register_operand" "")
(match_operand:HI 1 "const_int_le_2_operand" ""))) (match_operand:HI 1 "const_int_le_2_operand" "")))
(set (pc) (set (pc)
(if_then_else (match_operator 3 "eqne_operator" (if_then_else (match_operator 3 "eqne_operator"
...@@ -3503,7 +3503,7 @@ ...@@ -3503,7 +3503,7 @@
(define_peephole2 (define_peephole2
[(set (cc0) [(set (cc0)
(compare:SI (match_operand:SI 0 "register_operand" "") (compare (match_operand:SI 0 "register_operand" "")
(match_operand:SI 1 "const_int_le_6_operand" ""))) (match_operand:SI 1 "const_int_le_6_operand" "")))
(set (pc) (set (pc)
(if_then_else (match_operator 3 "eqne_operator" (if_then_else (match_operator 3 "eqne_operator"
...@@ -3527,7 +3527,7 @@ ...@@ -3527,7 +3527,7 @@
(define_peephole2 (define_peephole2
[(set (cc0) [(set (cc0)
(compare:SI (match_operand:SI 0 "register_operand" "") (compare (match_operand:SI 0 "register_operand" "")
(match_operand:SI 1 "const_int_operand" ""))) (match_operand:SI 1 "const_int_operand" "")))
(set (pc) (set (pc)
(if_then_else (match_operator 3 "eqne_operator" (if_then_else (match_operator 3 "eqne_operator"
...@@ -3557,7 +3557,7 @@ ...@@ -3557,7 +3557,7 @@
(define_peephole2 (define_peephole2
[(set (cc0) [(set (cc0)
(compare:SI (match_operand:SI 0 "register_operand" "") (compare (match_operand:SI 0 "register_operand" "")
(match_operand:SI 1 "const_int_operand" ""))) (match_operand:SI 1 "const_int_operand" "")))
(set (pc) (set (pc)
(if_then_else (match_operator 2 "gtuleu_operator" (if_then_else (match_operator 2 "gtuleu_operator"
...@@ -3592,7 +3592,7 @@ ...@@ -3592,7 +3592,7 @@
(define_peephole2 (define_peephole2
[(set (cc0) [(set (cc0)
(compare:HI (match_operand:HI 0 "register_operand" "") (compare (match_operand:HI 0 "register_operand" "")
(const_int 255))) (const_int 255)))
(set (pc) (set (pc)
(if_then_else (match_operator 1 "gtuleu_operator" (if_then_else (match_operator 1 "gtuleu_operator"
...@@ -3615,7 +3615,7 @@ ...@@ -3615,7 +3615,7 @@
(define_peephole2 (define_peephole2
[(set (cc0) [(set (cc0)
(compare:SI (match_operand:SI 0 "register_operand" "") (compare (match_operand:SI 0 "register_operand" "")
(const_int 65535))) (const_int 65535)))
(set (pc) (set (pc)
(if_then_else (match_operator 1 "gtuleu_operator" (if_then_else (match_operator 1 "gtuleu_operator"
...@@ -3642,7 +3642,7 @@ ...@@ -3642,7 +3642,7 @@
(define_peephole2 (define_peephole2
[(match_scratch:SI 4 "r") [(match_scratch:SI 4 "r")
(set (cc0) (set (cc0)
(compare:SI (match_operand:SI 0 "register_operand" "") (compare (match_operand:SI 0 "register_operand" "")
(match_operand:SI 1 "incdec_operand" ""))) (match_operand:SI 1 "incdec_operand" "")))
(set (pc) (set (pc)
(if_then_else (match_operator 3 "eqne_operator" (if_then_else (match_operator 3 "eqne_operator"
......
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