Commit 221ca267 by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

cris.md (ncond, [...]): Remove separate define_code_attr.

	* config/cris/cris.md (ncond, ocode, rcond): Remove separate
	define_code_attr.
	("b<ncond:code>", "b<ocond:code>", "b<rcond:code>")
	("*b<ncond:code>_reversed", "*b<ocond:code>_reversed")
	("*b<rcond:code>_reversed", "s<ncond:code>", "s<rcond:code>")
	("s<ocond:code>"): Rename from respectively "b<ncond>",
	"b<ocond>", "b<rcond>", ("*b<ncond>_reversed",
	"*b<ocond>_reversed", "*b<rcond>_reversed", "s<ncond>",
	"s<rcond>" and "s<ocond>".
	("b<ocond:code>", "*b<ocond:code>_reversed")
	("*b<rcond:code>_reversed"): Remove extraneous backslashes in
	output statement section.

From-SVN: r99846
parent a3a02333
2005-05-17 Hans-Peter Nilsson <hp@axis.com>
* config/cris/cris.md (ncond, ocode, rcond): Remove separate
define_code_attr.
("b<ncond:code>", "b<ocond:code>", "b<rcond:code>")
("*b<ncond:code>_reversed", "*b<ocond:code>_reversed")
("*b<rcond:code>_reversed", "s<ncond:code>", "s<rcond:code>")
("s<ocond:code>"): Rename from respectively "b<ncond>",
"b<ocond>", "b<rcond>", ("*b<ncond>_reversed",
"*b<ocond>_reversed", "*b<rcond>_reversed", "s<ncond>",
"s<rcond>" and "s<ocond>".
("b<ocond:code>", "*b<ocond:code>_reversed")
("*b<rcond:code>_reversed"): Remove extraneous backslashes in
output statement section.
2005-05-17 Roger Sayle <roger@eyesopen.com> 2005-05-17 Roger Sayle <roger@eyesopen.com>
* c-typeck.c (common_type): Also handle BOOLEAN_TYPEs. * c-typeck.c (common_type): Also handle BOOLEAN_TYPEs.
......
...@@ -164,16 +164,9 @@ ...@@ -164,16 +164,9 @@
(define_code_attr shlr [(ashiftrt "ashr") (lshiftrt "lshr") (ashift "ashl")]) (define_code_attr shlr [(ashiftrt "ashr") (lshiftrt "lshr") (ashift "ashl")])
(define_code_attr slr [(ashiftrt "asr") (lshiftrt "lsr") (ashift "lsl")]) (define_code_attr slr [(ashiftrt "asr") (lshiftrt "lsr") (ashift "lsl")])
;; For conditional branches and sCC. We define an attribute by the
;; same name as the macro, so the insn names here is seen as
;; b<ncond>, b<ocond> etc. rather than b<code> b<code> etc.
(define_code_macro ncond [eq ne gtu ltu geu leu]) (define_code_macro ncond [eq ne gtu ltu geu leu])
(define_code_attr ncond [(eq "eq") (ne "ne") (gtu "gtu") (ltu "ltu")
(geu "geu") (leu "leu")])
(define_code_macro ocond [gt le]) (define_code_macro ocond [gt le])
(define_code_attr ocond [(gt "gt") (le "le")])
(define_code_macro rcond [lt ge]) (define_code_macro rcond [lt ge])
(define_code_attr rcond [(lt "lt") (ge "ge")])
(define_code_attr CC [(eq "eq") (ne "ne") (gt "gt") (gtu "hi") (lt "lt") (define_code_attr CC [(eq "eq") (ne "ne") (gt "gt") (gtu "hi") (lt "lt")
(ltu "lo") (ge "ge") (geu "hs") (le "le") (leu "ls")]) (ltu "lo") (ge "ge") (geu "hs") (le "le") (leu "ls")])
(define_code_attr rCC [(eq "ne") (ne "eq") (gt "le") (gtu "ls") (lt "ge") (define_code_attr rCC [(eq "ne") (ne "eq") (gt "le") (gtu "ls") (lt "ge")
...@@ -2638,7 +2631,7 @@ ...@@ -2638,7 +2631,7 @@
;; e.g. m68k, so we have to check if overflow bit is set on all "signed" ;; e.g. m68k, so we have to check if overflow bit is set on all "signed"
;; conditions. ;; conditions.
(define_insn "b<ncond>" (define_insn "b<ncond:code>"
[(set (pc) [(set (pc)
(if_then_else (ncond (cc0) (if_then_else (ncond (cc0)
(const_int 0)) (const_int 0))
...@@ -2648,7 +2641,7 @@ ...@@ -2648,7 +2641,7 @@
"b<CC> %l0%#" "b<CC> %l0%#"
[(set_attr "slottable" "has_slot")]) [(set_attr "slottable" "has_slot")])
(define_insn "b<ocond>" (define_insn "b<ocond:code>"
[(set (pc) [(set (pc)
(if_then_else (ocond (cc0) (if_then_else (ocond (cc0)
(const_int 0)) (const_int 0))
...@@ -2658,11 +2651,11 @@ ...@@ -2658,11 +2651,11 @@
{ {
return return
(cc_prev_status.flags & CC_NO_OVERFLOW) (cc_prev_status.flags & CC_NO_OVERFLOW)
? 0 : \"b<CC> %l0%#\"; ? 0 : "b<CC> %l0%#";
} }
[(set_attr "slottable" "has_slot")]) [(set_attr "slottable" "has_slot")])
(define_insn "b<rcond>" (define_insn "b<rcond:code>"
[(set (pc) [(set (pc)
(if_then_else (rcond (cc0) (if_then_else (rcond (cc0)
(const_int 0)) (const_int 0))
...@@ -2678,7 +2671,7 @@ ...@@ -2678,7 +2671,7 @@
;; Reversed anonymous patterns to the ones above, as mandated. ;; Reversed anonymous patterns to the ones above, as mandated.
(define_insn "*b<ncond>_reversed" (define_insn "*b<ncond:code>_reversed"
[(set (pc) [(set (pc)
(if_then_else (ncond (cc0) (if_then_else (ncond (cc0)
(const_int 0)) (const_int 0))
...@@ -2688,7 +2681,7 @@ ...@@ -2688,7 +2681,7 @@
"b<rCC> %l0%#" "b<rCC> %l0%#"
[(set_attr "slottable" "has_slot")]) [(set_attr "slottable" "has_slot")])
(define_insn "*b<ocond>_reversed" (define_insn "*b<ocond:code>_reversed"
[(set (pc) [(set (pc)
(if_then_else (ocond (cc0) (if_then_else (ocond (cc0)
(const_int 0)) (const_int 0))
...@@ -2698,11 +2691,11 @@ ...@@ -2698,11 +2691,11 @@
{ {
return return
(cc_prev_status.flags & CC_NO_OVERFLOW) (cc_prev_status.flags & CC_NO_OVERFLOW)
? 0 : \"b<rCC> %l0%#\"; ? 0 : "b<rCC> %l0%#";
} }
[(set_attr "slottable" "has_slot")]) [(set_attr "slottable" "has_slot")])
(define_insn "*b<rcond>_reversed" (define_insn "*b<rcond:code>_reversed"
[(set (pc) [(set (pc)
(if_then_else (rcond (cc0) (if_then_else (rcond (cc0)
(const_int 0)) (const_int 0))
...@@ -2712,7 +2705,7 @@ ...@@ -2712,7 +2705,7 @@
{ {
return return
(cc_prev_status.flags & CC_NO_OVERFLOW) (cc_prev_status.flags & CC_NO_OVERFLOW)
? \"b<roCC> %l0%#\" : \"b<rCC> %l0%#\"; ? "b<roCC> %l0%#" : "b<rCC> %l0%#";
} }
[(set_attr "slottable" "has_slot")]) [(set_attr "slottable" "has_slot")])
...@@ -2721,7 +2714,7 @@ ...@@ -2721,7 +2714,7 @@
;; Like bCC, we have to check the overflow bit for ;; Like bCC, we have to check the overflow bit for
;; signed conditions. ;; signed conditions.
(define_insn "s<ncond>" (define_insn "s<ncond:code>"
[(set (match_operand:SI 0 "register_operand" "=r") [(set (match_operand:SI 0 "register_operand" "=r")
(ncond:SI (cc0) (const_int 0)))] (ncond:SI (cc0) (const_int 0)))]
"" ""
...@@ -2729,7 +2722,7 @@ ...@@ -2729,7 +2722,7 @@
[(set_attr "slottable" "yes") [(set_attr "slottable" "yes")
(set_attr "cc" "none")]) (set_attr "cc" "none")])
(define_insn "s<rcond>" (define_insn "s<rcond:code>"
[(set (match_operand:SI 0 "register_operand" "=r") [(set (match_operand:SI 0 "register_operand" "=r")
(rcond:SI (cc0) (const_int 0)))] (rcond:SI (cc0) (const_int 0)))]
"" ""
...@@ -2741,7 +2734,7 @@ ...@@ -2741,7 +2734,7 @@
[(set_attr "slottable" "yes") [(set_attr "slottable" "yes")
(set_attr "cc" "none")]) (set_attr "cc" "none")])
(define_insn "s<ocond>" (define_insn "s<ocond:code>"
[(set (match_operand:SI 0 "register_operand" "=r") [(set (match_operand:SI 0 "register_operand" "=r")
(ocond:SI (cc0) (const_int 0)))] (ocond:SI (cc0) (const_int 0)))]
"" ""
......
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