Commit 3219c65b by Bob Wilson Committed by Bob Wilson

xtensa.md: Give "*xxx" names to all unnamed insn's.

        * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
        (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
        zero_cost_loop_end): Remove unnecessary "parallel" from insns.

From-SVN: r55046
parent 07a6e20b
2002-06-27 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
(*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
zero_cost_loop_end): Remove unnecessary "parallel" from insns.
2002-06-27 Roger Sayle <roger@eyesopen.com> 2002-06-27 Roger Sayle <roger@eyesopen.com>
* config/d30v/d30v.h: Remove commented out STACK_REGS #defines. * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
......
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
(set_attr "mode" "SI") (set_attr "mode" "SI")
(set_attr "length" "2,2,3,3,3")]) (set_attr "length" "2,2,3,3,3")])
(define_insn "" (define_insn "*addx2"
[(set (match_operand:SI 0 "register_operand" "=a") [(set (match_operand:SI 0 "register_operand" "=a")
(plus:SI (mult:SI (match_operand:SI 1 "register_operand" "r") (plus:SI (mult:SI (match_operand:SI 1 "register_operand" "r")
(const_int 2)) (const_int 2))
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
(set_attr "mode" "SI") (set_attr "mode" "SI")
(set_attr "length" "3")]) (set_attr "length" "3")])
(define_insn "" (define_insn "*addx4"
[(set (match_operand:SI 0 "register_operand" "=a") [(set (match_operand:SI 0 "register_operand" "=a")
(plus:SI (mult:SI (match_operand:SI 1 "register_operand" "r") (plus:SI (mult:SI (match_operand:SI 1 "register_operand" "r")
(const_int 4)) (const_int 4))
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
(set_attr "mode" "SI") (set_attr "mode" "SI")
(set_attr "length" "3")]) (set_attr "length" "3")])
(define_insn "" (define_insn "*addx8"
[(set (match_operand:SI 0 "register_operand" "=a") [(set (match_operand:SI 0 "register_operand" "=a")
(plus:SI (mult:SI (match_operand:SI 1 "register_operand" "r") (plus:SI (mult:SI (match_operand:SI 1 "register_operand" "r")
(const_int 8)) (const_int 8))
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
(set_attr "mode" "SI") (set_attr "mode" "SI")
(set_attr "length" "3")]) (set_attr "length" "3")])
(define_insn "" (define_insn "*subx2"
[(set (match_operand:SI 0 "register_operand" "=a") [(set (match_operand:SI 0 "register_operand" "=a")
(minus:SI (mult:SI (match_operand:SI 1 "register_operand" "r") (minus:SI (mult:SI (match_operand:SI 1 "register_operand" "r")
(const_int 2)) (const_int 2))
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
(set_attr "mode" "SI") (set_attr "mode" "SI")
(set_attr "length" "3")]) (set_attr "length" "3")])
(define_insn "" (define_insn "*subx4"
[(set (match_operand:SI 0 "register_operand" "=a") [(set (match_operand:SI 0 "register_operand" "=a")
(minus:SI (mult:SI (match_operand:SI 1 "register_operand" "r") (minus:SI (mult:SI (match_operand:SI 1 "register_operand" "r")
(const_int 4)) (const_int 4))
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
(set_attr "mode" "SI") (set_attr "mode" "SI")
(set_attr "length" "3")]) (set_attr "length" "3")])
(define_insn "" (define_insn "*subx8"
[(set (match_operand:SI 0 "register_operand" "=a") [(set (match_operand:SI 0 "register_operand" "=a")
(minus:SI (mult:SI (match_operand:SI 1 "register_operand" "r") (minus:SI (mult:SI (match_operand:SI 1 "register_operand" "r")
(const_int 8)) (const_int 8))
...@@ -423,7 +423,7 @@ ...@@ -423,7 +423,7 @@
(set_attr "mode" "SF") (set_attr "mode" "SF")
(set_attr "length" "3")]) (set_attr "length" "3")])
(define_insn "" (define_insn "*recipsf2"
[(set (match_operand:SF 0 "register_operand" "=f") [(set (match_operand:SF 0 "register_operand" "=f")
(div:SF (match_operand:SF 1 "const_float_1_operand" "") (div:SF (match_operand:SF 1 "const_float_1_operand" "")
(match_operand:SF 2 "register_operand" "f")))] (match_operand:SF 2 "register_operand" "f")))]
...@@ -480,7 +480,7 @@ ...@@ -480,7 +480,7 @@
(set_attr "mode" "SF") (set_attr "mode" "SF")
(set_attr "length" "3")]) (set_attr "length" "3")])
(define_insn "" (define_insn "*rsqrtsf2"
[(set (match_operand:SF 0 "register_operand" "=f") [(set (match_operand:SF 0 "register_operand" "=f")
(div:SF (match_operand:SF 1 "const_float_1_operand" "") (div:SF (match_operand:SF 1 "const_float_1_operand" "")
(sqrt:SF (match_operand:SF 2 "register_operand" "f"))))] (sqrt:SF (match_operand:SF 2 "register_operand" "f"))))]
...@@ -1142,13 +1142,12 @@ ...@@ -1142,13 +1142,12 @@
(set_attr "mode" "SF") (set_attr "mode" "SF")
(set_attr "length" "3,3,3,2,2,2,3,3,3,3,3,3")]) (set_attr "length" "3,3,3,2,2,2,3,3,3,3,3,3")])
(define_insn "" (define_insn "*lsiu"
[(parallel
[(set (match_operand:SF 0 "register_operand" "=f") [(set (match_operand:SF 0 "register_operand" "=f")
(mem:SF (plus:SI (match_operand:SI 1 "register_operand" "+a") (mem:SF (plus:SI (match_operand:SI 1 "register_operand" "+a")
(match_operand:SI 2 "fpmem_offset_operand" "i")))) (match_operand:SI 2 "fpmem_offset_operand" "i"))))
(set (match_dup 1) (set (match_dup 1)
(plus:SI (match_dup 1) (match_dup 2)))])] (plus:SI (match_dup 1) (match_dup 2)))]
"TARGET_HARD_FLOAT" "TARGET_HARD_FLOAT"
"* "*
{ {
...@@ -1160,13 +1159,12 @@ ...@@ -1160,13 +1159,12 @@
(set_attr "mode" "SF") (set_attr "mode" "SF")
(set_attr "length" "3")]) (set_attr "length" "3")])
(define_insn "" (define_insn "*ssiu"
[(parallel
[(set (mem:SF (plus:SI (match_operand:SI 0 "register_operand" "+a") [(set (mem:SF (plus:SI (match_operand:SI 0 "register_operand" "+a")
(match_operand:SI 1 "fpmem_offset_operand" "i"))) (match_operand:SI 1 "fpmem_offset_operand" "i")))
(match_operand:SF 2 "register_operand" "f")) (match_operand:SF 2 "register_operand" "f"))
(set (match_dup 0) (set (match_dup 0)
(plus:SI (match_dup 0) (match_dup 1)))])] (plus:SI (match_dup 0) (match_dup 1)))]
"TARGET_HARD_FLOAT" "TARGET_HARD_FLOAT"
"* "*
{ {
...@@ -1275,12 +1273,12 @@ ...@@ -1275,12 +1273,12 @@
}") }")
(define_insn "movstrsi_internal" (define_insn "movstrsi_internal"
[(parallel [(set (match_operand:BLK 0 "memory_operand" "=U") [(set (match_operand:BLK 0 "memory_operand" "=U")
(match_operand:BLK 1 "memory_operand" "U")) (match_operand:BLK 1 "memory_operand" "U"))
(use (match_operand:SI 2 "arith_operand" "")) (use (match_operand:SI 2 "arith_operand" ""))
(use (match_operand:SI 3 "const_int_operand" "")) (use (match_operand:SI 3 "const_int_operand" ""))
(clobber (match_scratch:SI 4 "=&r")) (clobber (match_scratch:SI 4 "=&r"))
(clobber (match_scratch:SI 5 "=&r"))])] (clobber (match_scratch:SI 5 "=&r"))]
"" ""
"* "*
{ {
...@@ -1553,7 +1551,7 @@ ...@@ -1553,7 +1551,7 @@
;; Branch patterns for standard integer comparisons ;; Branch patterns for standard integer comparisons
(define_insn "" (define_insn "*btrue"
[(set (pc) [(set (pc)
(if_then_else (match_operator 3 "branch_operator" (if_then_else (match_operator 3 "branch_operator"
[(match_operand:SI 0 "register_operand" "r,r") [(match_operand:SI 0 "register_operand" "r,r")
...@@ -1607,7 +1605,7 @@ ...@@ -1607,7 +1605,7 @@
(set_attr "mode" "none") (set_attr "mode" "none")
(set_attr "length" "3,3")]) (set_attr "length" "3,3")])
(define_insn "" (define_insn "*bfalse"
[(set (pc) [(set (pc)
(if_then_else (match_operator 3 "branch_operator" (if_then_else (match_operator 3 "branch_operator"
[(match_operand:SI 0 "register_operand" "r,r") [(match_operand:SI 0 "register_operand" "r,r")
...@@ -1661,7 +1659,7 @@ ...@@ -1661,7 +1659,7 @@
(set_attr "mode" "none") (set_attr "mode" "none")
(set_attr "length" "3,3")]) (set_attr "length" "3,3")])
(define_insn "" (define_insn "*ubtrue"
[(set (pc) [(set (pc)
(if_then_else (match_operator 3 "ubranch_operator" (if_then_else (match_operator 3 "ubranch_operator"
[(match_operand:SI 0 "register_operand" "r,r") [(match_operand:SI 0 "register_operand" "r,r")
...@@ -1696,7 +1694,7 @@ ...@@ -1696,7 +1694,7 @@
(set_attr "mode" "none") (set_attr "mode" "none")
(set_attr "length" "3,3")]) (set_attr "length" "3,3")])
(define_insn "" (define_insn "*ubfalse"
[(set (pc) [(set (pc)
(if_then_else (match_operator 3 "ubranch_operator" (if_then_else (match_operator 3 "ubranch_operator"
[(match_operand:SI 0 "register_operand" "r,r") [(match_operand:SI 0 "register_operand" "r,r")
...@@ -1733,7 +1731,7 @@ ...@@ -1733,7 +1731,7 @@
;; Branch patterns for bit testing ;; Branch patterns for bit testing
(define_insn "" (define_insn "*bittrue"
[(set (pc) [(set (pc)
(if_then_else (match_operator 3 "boolean_operator" (if_then_else (match_operator 3 "boolean_operator"
[(zero_extract:SI [(zero_extract:SI
...@@ -1773,7 +1771,7 @@ ...@@ -1773,7 +1771,7 @@
(set_attr "mode" "none") (set_attr "mode" "none")
(set_attr "length" "3")]) (set_attr "length" "3")])
(define_insn "" (define_insn "*bitfalse"
[(set (pc) [(set (pc)
(if_then_else (match_operator 3 "boolean_operator" (if_then_else (match_operator 3 "boolean_operator"
[(zero_extract:SI [(zero_extract:SI
...@@ -1813,7 +1811,7 @@ ...@@ -1813,7 +1811,7 @@
(set_attr "mode" "none") (set_attr "mode" "none")
(set_attr "length" "3")]) (set_attr "length" "3")])
(define_insn "" (define_insn "*masktrue"
[(set (pc) [(set (pc)
(if_then_else (match_operator 3 "boolean_operator" (if_then_else (match_operator 3 "boolean_operator"
[(and:SI (match_operand:SI 0 "register_operand" "r") [(and:SI (match_operand:SI 0 "register_operand" "r")
...@@ -1837,7 +1835,7 @@ ...@@ -1837,7 +1835,7 @@
(set_attr "mode" "none") (set_attr "mode" "none")
(set_attr "length" "3")]) (set_attr "length" "3")])
(define_insn "" (define_insn "*maskfalse"
[(set (pc) [(set (pc)
(if_then_else (match_operator 3 "boolean_operator" (if_then_else (match_operator 3 "boolean_operator"
[(and:SI (match_operand:SI 0 "register_operand" "r") [(and:SI (match_operand:SI 0 "register_operand" "r")
...@@ -1868,13 +1866,12 @@ ...@@ -1868,13 +1866,12 @@
;; since since loop end is handled in hardware. ;; since since loop end is handled in hardware.
(define_insn "zero_cost_loop_start" (define_insn "zero_cost_loop_start"
[(parallel [(set (pc) (if_then_else (eq (match_operand:SI 0 "register_operand" "a") [(set (pc) (if_then_else (eq (match_operand:SI 0 "register_operand" "a")
(const_int 0)) (const_int 0))
(label_ref (match_operand 1 "" "")) (label_ref (match_operand 1 "" ""))
(pc))) (pc)))
(set (reg:SI 19) (set (reg:SI 19)
(plus:SI (match_dup 0) (plus:SI (match_dup 0) (const_int -1)))]
(const_int -1)))])]
"" ""
"loopnez %0, %l1" "loopnez %0, %l1"
[(set_attr "type" "jump") [(set_attr "type" "jump")
...@@ -1882,13 +1879,11 @@ ...@@ -1882,13 +1879,11 @@
(set_attr "length" "3")]) (set_attr "length" "3")])
(define_insn "zero_cost_loop_end" (define_insn "zero_cost_loop_end"
[(parallel [(set (pc) (if_then_else (ne (reg:SI 19) [(set (pc) (if_then_else (ne (reg:SI 19) (const_int 0))
(const_int 0))
(label_ref (match_operand 0 "" "")) (label_ref (match_operand 0 "" ""))
(pc))) (pc)))
(set (reg:SI 19) (set (reg:SI 19)
(plus:SI (reg:SI 19) (plus:SI (reg:SI 19) (const_int -1)))]
(const_int -1)))])]
"" ""
"* "*
xtensa_emit_loop_end (insn, operands); xtensa_emit_loop_end (insn, operands);
...@@ -2426,7 +2421,7 @@ ...@@ -2426,7 +2421,7 @@
;; The preceding splitter needs something to split the insn into; ;; The preceding splitter needs something to split the insn into;
;; things start breaking if the result is just a "use" so instead we ;; things start breaking if the result is just a "use" so instead we
;; generate the following insn. ;; generate the following insn.
(define_insn "" (define_insn "*unspec_nop"
[(unspec [(const_int 0)] UNSPEC_NOP)] [(unspec [(const_int 0)] UNSPEC_NOP)]
"" ""
"" ""
...@@ -2461,7 +2456,7 @@ srli\\t%3, %3, 30\;slli\\t%0, %1, 2\;ssai\\t2\;src\\t%0, %3, %0" ...@@ -2461,7 +2456,7 @@ srli\\t%3, %3, 30\;slli\\t%0, %1, 2\;ssai\\t2\;src\\t%0, %3, %0"
;; branch patterns ;; branch patterns
(define_insn "" (define_insn "*booltrue"
[(set (pc) [(set (pc)
(if_then_else (match_operator 2 "boolean_operator" (if_then_else (match_operator 2 "boolean_operator"
[(match_operand:CC 0 "register_operand" "b") [(match_operand:CC 0 "register_operand" "b")
...@@ -2480,7 +2475,7 @@ srli\\t%3, %3, 30\;slli\\t%0, %1, 2\;ssai\\t2\;src\\t%0, %3, %0" ...@@ -2480,7 +2475,7 @@ srli\\t%3, %3, 30\;slli\\t%0, %1, 2\;ssai\\t2\;src\\t%0, %3, %0"
(set_attr "mode" "none") (set_attr "mode" "none")
(set_attr "length" "3")]) (set_attr "length" "3")])
(define_insn "" (define_insn "*boolfalse"
[(set (pc) [(set (pc)
(if_then_else (match_operator 2 "boolean_operator" (if_then_else (match_operator 2 "boolean_operator"
[(match_operand:CC 0 "register_operand" "b") [(match_operand:CC 0 "register_operand" "b")
......
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