Commit 34f921d8 by Richard Stallman

(iorsi3): Explicitly set length to 1.

(andsi3, lshrsi3, rotrsi3, rotlsi3): Likewise.
(ashift and ashiftrt by const_int_operand): Likewise.
((and (ashift)) optimizer): Likewise.

From-SVN: r4676
parent dbf85761
...@@ -2149,7 +2149,9 @@ ...@@ -2149,7 +2149,9 @@
(and:SI (match_operand:SI 1 "register_operand" "%r,0") (and:SI (match_operand:SI 1 "register_operand" "%r,0")
(match_operand:SI 2 "and_operand" "rO,P")))] (match_operand:SI 2 "and_operand" "rO,P")))]
"" ""
"* return output_and (operands); ") "* return output_and (operands); "
[(set_attr "type" "binary")
(set_attr "length" "1")])
(define_insn "" (define_insn ""
[(set (match_operand:DI 0 "register_operand" "=r") [(set (match_operand:DI 0 "register_operand" "=r")
...@@ -2204,7 +2206,9 @@ ...@@ -2204,7 +2206,9 @@
(ior:SI (match_operand:SI 1 "register_operand" "0") (ior:SI (match_operand:SI 1 "register_operand" "0")
(match_operand:SI 2 "ior_operand" "")))] (match_operand:SI 2 "ior_operand" "")))]
"" ""
"* return output_ior (operands); ") "* return output_ior (operands); "
[(set_attr "type" "binary")
(set_attr "length" "1")])
(define_insn "" (define_insn ""
[(set (match_operand:SI 0 "register_operand" "=r") [(set (match_operand:SI 0 "register_operand" "=r")
...@@ -2461,7 +2465,9 @@ ...@@ -2461,7 +2465,9 @@
(ashift:SI (match_operand:SI 1 "register_operand" "r") (ashift:SI (match_operand:SI 1 "register_operand" "r")
(match_operand:SI 2 "const_int_operand" "n")))] (match_operand:SI 2 "const_int_operand" "n")))]
"" ""
"zdep %1,%P2,%L2,%0") "zdep %1,%P2,%L2,%0"
[(set_attr "type" "binary")
(set_attr "length" "1")])
; Match cases of op1 a CONST_INT here that zvdep_imm doesn't handle. ; Match cases of op1 a CONST_INT here that zvdep_imm doesn't handle.
; Doing it like this makes slightly better code since reload can ; Doing it like this makes slightly better code since reload can
...@@ -2514,7 +2520,9 @@ ...@@ -2514,7 +2520,9 @@
(ashiftrt:SI (match_operand:SI 1 "register_operand" "r") (ashiftrt:SI (match_operand:SI 1 "register_operand" "r")
(match_operand:SI 2 "const_int_operand" "n")))] (match_operand:SI 2 "const_int_operand" "n")))]
"" ""
"extrs %1,%P2,%L2,%0") "extrs %1,%P2,%L2,%0"
[(set_attr "type" "binary")
(set_attr "length" "1")])
(define_insn "vextrs32" (define_insn "vextrs32"
[(set (match_operand:SI 0 "register_operand" "=r") [(set (match_operand:SI 0 "register_operand" "=r")
...@@ -2531,7 +2539,9 @@ ...@@ -2531,7 +2539,9 @@
"" ""
"@ "@
vshd 0,%1,%0 vshd 0,%1,%0
extru %1,%P2,%L2,%0") extru %1,%P2,%L2,%0"
[(set_attr "type" "binary")
(set_attr "length" "1")])
(define_insn "rotrsi3" (define_insn "rotrsi3"
[(set (match_operand:SI 0 "register_operand" "=r,r") [(set (match_operand:SI 0 "register_operand" "=r,r")
...@@ -2547,7 +2557,9 @@ ...@@ -2547,7 +2557,9 @@
} }
else else
return \"vshd %1,%1,%0\"; return \"vshd %1,%1,%0\";
}") }"
[(set_attr "type" "binary")
(set_attr "length" "1")])
(define_insn "rotlsi3" (define_insn "rotlsi3"
[(set (match_operand:SI 0 "register_operand" "=r") [(set (match_operand:SI 0 "register_operand" "=r")
...@@ -2558,7 +2570,9 @@ ...@@ -2558,7 +2570,9 @@
{ {
operands[2] = GEN_INT ((32 - INTVAL (operands[2])) & 31); operands[2] = GEN_INT ((32 - INTVAL (operands[2])) & 31);
return \"shd %1,%1,%2,%0\"; return \"shd %1,%1,%2,%0\";
}") }"
[(set_attr "type" "binary")
(set_attr "length" "1")])
(define_insn "" (define_insn ""
[(set (match_operand:SI 0 "register_operand" "=r") [(set (match_operand:SI 0 "register_operand" "=r")
...@@ -2596,7 +2610,9 @@ ...@@ -2596,7 +2610,9 @@
operands[3] = GEN_INT (exact_log2 (1 + (INTVAL (operands[3]) >> cnt))); operands[3] = GEN_INT (exact_log2 (1 + (INTVAL (operands[3]) >> cnt)));
operands[2] = GEN_INT (31 - cnt); operands[2] = GEN_INT (31 - cnt);
return \"zdep %1,%2,%3,%0\"; return \"zdep %1,%2,%3,%0\";
}") }"
[(set_attr "type" "binary")
(set_attr "length" "1")])
;; Unconditional and other jump instructions. ;; Unconditional and other jump instructions.
......
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