Commit 7a96832a by Richard Kenner

Remove unneeded tests on HOST_BITS_PER_INT from some extra conditions.

Use low_32_bit_operand for (plus:DI (zero_extend:DI ..) ..) cases.

From-SVN: r9080
parent 1c71b69d
...@@ -3135,7 +3135,7 @@ ...@@ -3135,7 +3135,7 @@
(set (match_operand:DF 0 "gpc_reg_operand" "") (set (match_operand:DF 0 "gpc_reg_operand" "")
(minus:DF (subreg:DF (match_dup 2) 0) (minus:DF (subreg:DF (match_dup 2) 0)
(match_dup 5)))] (match_dup 5)))]
"! TARGET_POWERPC64 && (HOST_BITS_PER_INT == BITS_PER_WORD) && TARGET_HARD_FLOAT" "! TARGET_POWERPC64"
" "
{ {
operands[2] = gen_reg_rtx (DImode); operands[2] = gen_reg_rtx (DImode);
...@@ -3152,7 +3152,7 @@ ...@@ -3152,7 +3152,7 @@
(set (match_operand:DF 0 "gpc_reg_operand" "") (set (match_operand:DF 0 "gpc_reg_operand" "")
(minus:DF (subreg:DF (match_dup 2) 0) (minus:DF (subreg:DF (match_dup 2) 0)
(match_dup 4)))] (match_dup 4)))]
"! TARGET_POWERPC64 && (HOST_BITS_PER_INT == BITS_PER_WORD) && TARGET_HARD_FLOAT" "! TARGET_POWERPC64"
" "
{ {
operands[2] = gen_reg_rtx (DImode); operands[2] = gen_reg_rtx (DImode);
...@@ -3166,10 +3166,8 @@ ...@@ -3166,10 +3166,8 @@
(plus:DI (zero_extend:DI (plus:DI (zero_extend:DI
(xor:SI (match_operand:SI 1 "gpc_reg_operand" "") (xor:SI (match_operand:SI 1 "gpc_reg_operand" "")
(match_operand:SI 2 "logical_operand" ""))) (match_operand:SI 2 "logical_operand" "")))
(match_operand:DI 3 "immediate_operand" "")))] (match_operand:DI 3 "low_32_bit_operand" "")))]
"reload_completed && HOST_BITS_PER_INT == BITS_PER_WORD "reload_completed"
&& GET_CODE (operands[3]) == CONST_DOUBLE
&& CONST_DOUBLE_LOW (operands[3]) == 0"
[(set (match_dup 6) (xor:SI (match_dup 1) (match_dup 2))) [(set (match_dup 6) (xor:SI (match_dup 1) (match_dup 2)))
(set (match_dup 4) (match_dup 5))] (set (match_dup 4) (match_dup 5))]
" "
...@@ -3183,20 +3181,16 @@ ...@@ -3183,20 +3181,16 @@
(plus:DI (zero_extend:DI (plus:DI (zero_extend:DI
(xor:SI (match_operand:SI 1 "gpc_reg_operand" "%r") (xor:SI (match_operand:SI 1 "gpc_reg_operand" "%r")
(match_operand:SI 2 "logical_operand" "rKJ"))) (match_operand:SI 2 "logical_operand" "rKJ")))
(match_operand:DI 3 "immediate_operand" "n")))] (match_operand:DI 3 "low_32_bit_operand" "n")))]
"HOST_BITS_PER_INT == BITS_PER_WORD ""
&& GET_CODE (operands[3]) == CONST_DOUBLE
&& CONST_DOUBLE_LOW (operands[3]) == 0"
"#" "#"
[(set_attr "length" "8")]) [(set_attr "length" "8")])
(define_split (define_split
[(set (match_operand:DI 0 "gpc_reg_operand" "=") [(set (match_operand:DI 0 "gpc_reg_operand" "=")
(plus:DI (zero_extend:DI (match_operand:SI 1 "gpc_reg_operand" "")) (plus:DI (zero_extend:DI (match_operand:SI 1 "gpc_reg_operand" ""))
(match_operand:DI 2 "immediate_operand" "")))] (match_operand:DI 2 "low_32_bit_operand" "")))]
"reload_completed && HOST_BITS_PER_INT == BITS_PER_WORD "reload_completed"
&& GET_CODE (operands[2]) == CONST_DOUBLE
&& CONST_DOUBLE_LOW (operands[2]) == 0"
[(set (match_dup 3) (match_dup 4)) [(set (match_dup 3) (match_dup 4))
(set (match_dup 5) (match_dup 1))] (set (match_dup 5) (match_dup 1))]
" "
...@@ -3222,10 +3216,8 @@ ...@@ -3222,10 +3216,8 @@
(define_insn "" (define_insn ""
[(set (match_operand:DI 0 "gpc_reg_operand" "=r") [(set (match_operand:DI 0 "gpc_reg_operand" "=r")
(plus:DI (zero_extend:DI (match_operand:SI 1 "gpc_reg_operand" "r")) (plus:DI (zero_extend:DI (match_operand:SI 1 "gpc_reg_operand" "r"))
(match_operand:DI 2 "immediate_operand" "n")))] (match_operand:DI 2 "low_32_bit_operand" "n")))]
"HOST_BITS_PER_INT == BITS_PER_WORD ""
&& GET_CODE (operands[2]) == CONST_DOUBLE
&& CONST_DOUBLE_LOW (operands[2]) == 0"
"#" "#"
[(set_attr "length" "8")]) [(set_attr "length" "8")])
......
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