From 7a96832ab0f1a65a968c8dd8766eb359f5a4c80e Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 25 Feb 1995 06:52:06 -0500 Subject: [PATCH] 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 --- gcc/config/rs6000/rs6000.md | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 13de97be928..0c0b223f7da 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -3135,7 +3135,7 @@ (set (match_operand:DF 0 "gpc_reg_operand" "") (minus:DF (subreg:DF (match_dup 2) 0) (match_dup 5)))] - "! TARGET_POWERPC64 && (HOST_BITS_PER_INT == BITS_PER_WORD) && TARGET_HARD_FLOAT" + "! TARGET_POWERPC64" " { operands[2] = gen_reg_rtx (DImode); @@ -3152,7 +3152,7 @@ (set (match_operand:DF 0 "gpc_reg_operand" "") (minus:DF (subreg:DF (match_dup 2) 0) (match_dup 4)))] - "! TARGET_POWERPC64 && (HOST_BITS_PER_INT == BITS_PER_WORD) && TARGET_HARD_FLOAT" + "! TARGET_POWERPC64" " { operands[2] = gen_reg_rtx (DImode); @@ -3166,10 +3166,8 @@ (plus:DI (zero_extend:DI (xor:SI (match_operand:SI 1 "gpc_reg_operand" "") (match_operand:SI 2 "logical_operand" ""))) - (match_operand:DI 3 "immediate_operand" "")))] - "reload_completed && HOST_BITS_PER_INT == BITS_PER_WORD - && GET_CODE (operands[3]) == CONST_DOUBLE - && CONST_DOUBLE_LOW (operands[3]) == 0" + (match_operand:DI 3 "low_32_bit_operand" "")))] + "reload_completed" [(set (match_dup 6) (xor:SI (match_dup 1) (match_dup 2))) (set (match_dup 4) (match_dup 5))] " @@ -3183,20 +3181,16 @@ (plus:DI (zero_extend:DI (xor:SI (match_operand:SI 1 "gpc_reg_operand" "%r") (match_operand:SI 2 "logical_operand" "rKJ"))) - (match_operand:DI 3 "immediate_operand" "n")))] - "HOST_BITS_PER_INT == BITS_PER_WORD - && GET_CODE (operands[3]) == CONST_DOUBLE - && CONST_DOUBLE_LOW (operands[3]) == 0" + (match_operand:DI 3 "low_32_bit_operand" "n")))] + "" "#" [(set_attr "length" "8")]) (define_split [(set (match_operand:DI 0 "gpc_reg_operand" "=") (plus:DI (zero_extend:DI (match_operand:SI 1 "gpc_reg_operand" "")) - (match_operand:DI 2 "immediate_operand" "")))] - "reload_completed && HOST_BITS_PER_INT == BITS_PER_WORD - && GET_CODE (operands[2]) == CONST_DOUBLE - && CONST_DOUBLE_LOW (operands[2]) == 0" + (match_operand:DI 2 "low_32_bit_operand" "")))] + "reload_completed" [(set (match_dup 3) (match_dup 4)) (set (match_dup 5) (match_dup 1))] " @@ -3222,10 +3216,8 @@ (define_insn "" [(set (match_operand:DI 0 "gpc_reg_operand" "=r") (plus:DI (zero_extend:DI (match_operand:SI 1 "gpc_reg_operand" "r")) - (match_operand:DI 2 "immediate_operand" "n")))] - "HOST_BITS_PER_INT == BITS_PER_WORD - && GET_CODE (operands[2]) == CONST_DOUBLE - && CONST_DOUBLE_LOW (operands[2]) == 0" + (match_operand:DI 2 "low_32_bit_operand" "n")))] + "" "#" [(set_attr "length" "8")]) -- 2.30.2