aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/cris
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2005-05-17 18:53:11 +0000
committerHans-Peter Nilsson <hp@gcc.gnu.org>2005-05-17 18:53:11 +0000
commit221ca26767d6974bde165585f15595c12b63a56f (patch)
tree4c27eb61ccfc6380dacfda762fa54ab32e91b480 /gcc/config/cris
parenta3a02333fa1c9f0d9fed99707b9da2e51754374d (diff)
downloadgcc-221ca26767d6974bde165585f15595c12b63a56f.zip
gcc-221ca26767d6974bde165585f15595c12b63a56f.tar.gz
gcc-221ca26767d6974bde165585f15595c12b63a56f.tar.bz2
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
Diffstat (limited to 'gcc/config/cris')
-rw-r--r--gcc/config/cris/cris.md31
1 files changed, 12 insertions, 19 deletions
diff --git a/gcc/config/cris/cris.md b/gcc/config/cris/cris.md
index e8d330f..8878b56 100644
--- a/gcc/config/cris/cris.md
+++ b/gcc/config/cris/cris.md
@@ -164,16 +164,9 @@
(define_code_attr shlr [(ashiftrt "ashr") (lshiftrt "lshr") (ashift "ashl")])
(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_attr ncond [(eq "eq") (ne "ne") (gtu "gtu") (ltu "ltu")
- (geu "geu") (leu "leu")])
(define_code_macro ocond [gt le])
-(define_code_attr ocond [(gt "gt") (le "le")])
(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")
(ltu "lo") (ge "ge") (geu "hs") (le "le") (leu "ls")])
(define_code_attr rCC [(eq "ne") (ne "eq") (gt "le") (gtu "ls") (lt "ge")
@@ -2638,7 +2631,7 @@
;; e.g. m68k, so we have to check if overflow bit is set on all "signed"
;; conditions.
-(define_insn "b<ncond>"
+(define_insn "b<ncond:code>"
[(set (pc)
(if_then_else (ncond (cc0)
(const_int 0))
@@ -2648,7 +2641,7 @@
"b<CC> %l0%#"
[(set_attr "slottable" "has_slot")])
-(define_insn "b<ocond>"
+(define_insn "b<ocond:code>"
[(set (pc)
(if_then_else (ocond (cc0)
(const_int 0))
@@ -2658,11 +2651,11 @@
{
return
(cc_prev_status.flags & CC_NO_OVERFLOW)
- ? 0 : \"b<CC> %l0%#\";
+ ? 0 : "b<CC> %l0%#";
}
[(set_attr "slottable" "has_slot")])
-(define_insn "b<rcond>"
+(define_insn "b<rcond:code>"
[(set (pc)
(if_then_else (rcond (cc0)
(const_int 0))
@@ -2678,7 +2671,7 @@
;; Reversed anonymous patterns to the ones above, as mandated.
-(define_insn "*b<ncond>_reversed"
+(define_insn "*b<ncond:code>_reversed"
[(set (pc)
(if_then_else (ncond (cc0)
(const_int 0))
@@ -2688,7 +2681,7 @@
"b<rCC> %l0%#"
[(set_attr "slottable" "has_slot")])
-(define_insn "*b<ocond>_reversed"
+(define_insn "*b<ocond:code>_reversed"
[(set (pc)
(if_then_else (ocond (cc0)
(const_int 0))
@@ -2698,11 +2691,11 @@
{
return
(cc_prev_status.flags & CC_NO_OVERFLOW)
- ? 0 : \"b<rCC> %l0%#\";
+ ? 0 : "b<rCC> %l0%#";
}
[(set_attr "slottable" "has_slot")])
-(define_insn "*b<rcond>_reversed"
+(define_insn "*b<rcond:code>_reversed"
[(set (pc)
(if_then_else (rcond (cc0)
(const_int 0))
@@ -2712,7 +2705,7 @@
{
return
(cc_prev_status.flags & CC_NO_OVERFLOW)
- ? \"b<roCC> %l0%#\" : \"b<rCC> %l0%#\";
+ ? "b<roCC> %l0%#" : "b<rCC> %l0%#";
}
[(set_attr "slottable" "has_slot")])
@@ -2721,7 +2714,7 @@
;; Like bCC, we have to check the overflow bit for
;; signed conditions.
-(define_insn "s<ncond>"
+(define_insn "s<ncond:code>"
[(set (match_operand:SI 0 "register_operand" "=r")
(ncond:SI (cc0) (const_int 0)))]
""
@@ -2729,7 +2722,7 @@
[(set_attr "slottable" "yes")
(set_attr "cc" "none")])
-(define_insn "s<rcond>"
+(define_insn "s<rcond:code>"
[(set (match_operand:SI 0 "register_operand" "=r")
(rcond:SI (cc0) (const_int 0)))]
""
@@ -2741,7 +2734,7 @@
[(set_attr "slottable" "yes")
(set_attr "cc" "none")])
-(define_insn "s<ocond>"
+(define_insn "s<ocond:code>"
[(set (match_operand:SI 0 "register_operand" "=r")
(ocond:SI (cc0) (const_int 0)))]
""