diff options
author | Alan Modra <amodra@bigpond.net.au> | 2006-03-26 22:48:22 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2006-03-27 09:18:22 +1030 |
commit | 036aadfc777a9b86ae65394c7cc1116688fc90a9 (patch) | |
tree | a3a49f08e12d44fed2660a8823c3f8ea14373434 /gcc/config/rs6000/rs6000.md | |
parent | ba42e045f7da0362ac1ff19ce0a2210999f7f1f8 (diff) | |
download | gcc-036aadfc777a9b86ae65394c7cc1116688fc90a9.zip gcc-036aadfc777a9b86ae65394c7cc1116688fc90a9.tar.gz gcc-036aadfc777a9b86ae65394c7cc1116688fc90a9.tar.bz2 |
re PR target/26459 (gcc fails to build on powerpc e500-double targets)
PR target/26459
* config/rs6000/rs6000.md (DF reg move peephole): Prevent
peephole removing spe frob_di_df_2.
From-SVN: r112400
Diffstat (limited to 'gcc/config/rs6000/rs6000.md')
-rw-r--r-- | gcc/config/rs6000/rs6000.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 48e8df2..06670d2 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -9765,18 +9765,20 @@ "operands[0] = widen_memory_access (operands[0], V2DFmode, 0); operands[1] = gen_rtx_REG (V2DFmode, REGNO (operands[1]));") -;; after inserting conditional returns we can sometimes have +;; After inserting conditional returns we can sometimes have ;; unnecessary register moves. Unfortunately we cannot have a ;; modeless peephole here, because some single SImode sets have early ;; clobber outputs. Although those sets expand to multi-ppc-insn ;; sequences, using get_attr_length here will smash the operands ;; array. Neither is there an early_cobbler_p predicate. +;; Disallow subregs for E500 so we don't munge frob_di_df_2. (define_peephole2 [(set (match_operand:DF 0 "gpc_reg_operand" "") (match_operand:DF 1 "any_operand" "")) (set (match_operand:DF 2 "gpc_reg_operand" "") (match_dup 0))] - "peep2_reg_dead_p (2, operands[0])" + "!(TARGET_E500_DOUBLE && GET_CODE (operands[2]) == SUBREG) + && peep2_reg_dead_p (2, operands[0])" [(set (match_dup 2) (match_dup 1))]) (define_peephole2 |