diff options
author | Bernd Schmidt <bernd.schmidt@analog.com> | 2007-06-11 11:29:00 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2007-06-11 11:29:00 +0000 |
commit | 0ea80eb62c65245e3272300a5c407c1f2beb5f1f (patch) | |
tree | 7f8e4169e6883f6a6eece140e66997ea7260ca29 /gcc | |
parent | b0464c88979442236689310d43ee38b6579bc1e2 (diff) | |
download | gcc-0ea80eb62c65245e3272300a5c407c1f2beb5f1f.zip gcc-0ea80eb62c65245e3272300a5c407c1f2beb5f1f.tar.gz gcc-0ea80eb62c65245e3272300a5c407c1f2beb5f1f.tar.bz2 |
bfin.md (movdi_insn, [...]): Don't allow constant to memory moves.
* config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
to memory moves.
From-SVN: r125617
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/bfin/bfin.md | 14 |
2 files changed, 13 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7a61593..fd94652 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-06-11 Bernd Schmidt <bernd.schmidt@analog.com> + + * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn, + movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant + to memory moves. + 2007-06-11 Rafael Avila de Espindola <espindola@google.com> * gcc/tree.c (signed_or_unsigned_type_for): New. diff --git a/gcc/config/bfin/bfin.md b/gcc/config/bfin/bfin.md index 630694a..d447825 100644 --- a/gcc/config/bfin/bfin.md +++ b/gcc/config/bfin/bfin.md @@ -424,7 +424,7 @@ (define_insn_and_split "movdi_insn" [(set (match_operand:DI 0 "nonimmediate_operand" "=x,mx,r") (match_operand:DI 1 "general_operand" "iFx,r,mx"))] - "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM" + "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) == REG" "#" "reload_completed" [(set (match_dup 2) (match_dup 3)) @@ -524,7 +524,7 @@ (define_insn "*movsi_insn" [(set (match_operand:SI 0 "nonimmediate_operand" "=da,x*y,da,x,x,x,da,mr") (match_operand:SI 1 "general_operand" "da,x*y,xKs7,xKsh,xKuh,ix,mr,da"))] - "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM" + "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) == REG" "@ %0 = %1; %0 = %1; @@ -562,7 +562,7 @@ [(set (match_operand:V2HI 0 "nonimmediate_operand" "=da,da,d,dm") (match_operand:V2HI 1 "general_operand" "i,di,md,d"))] - "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM" + "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) == REG" "@ # %0 = %1; @@ -584,7 +584,7 @@ (define_insn "*movhi_insn" [(set (match_operand:HI 0 "nonimmediate_operand" "=x,da,x,d,mr") (match_operand:HI 1 "general_operand" "x,xKs7,xKsh,mr,d"))] - "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM" + "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) == REG" { static const char *templates[] = { "%0 = %1;", @@ -608,7 +608,7 @@ (define_insn "*movqi_insn" [(set (match_operand:QI 0 "nonimmediate_operand" "=x,da,x,d,mr") (match_operand:QI 1 "general_operand" "x,xKs7,xKsh,mr,d"))] - "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM" + "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) == REG" "@ %0 = %1; %0 = %1 (X); @@ -621,7 +621,7 @@ (define_insn "*movsf_insn" [(set (match_operand:SF 0 "nonimmediate_operand" "=x,x,da,mr") (match_operand:SF 1 "general_operand" "x,Fx,mr,da"))] - "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM" + "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) == REG" "@ %0 = %1; # @@ -632,7 +632,7 @@ (define_insn_and_split "movdf_insn" [(set (match_operand:DF 0 "nonimmediate_operand" "=x,mx,r") (match_operand:DF 1 "general_operand" "iFx,r,mx"))] - "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM" + "GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) == REG" "#" "reload_completed" [(set (match_dup 2) (match_dup 3)) |