aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <richard@codesourcery.com>2007-03-06 08:59:20 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-03-06 08:59:20 +0000
commit31c5b44477907faf937f859808c9aca9879a96f4 (patch)
tree00245d51d6756efaa2edb82baf5a5bc3174494f4
parenta40ed0f3103b04e249f2ad78ae36e328f2d6f1cd (diff)
downloadgcc-31c5b44477907faf937f859808c9aca9879a96f4.zip
gcc-31c5b44477907faf937f859808c9aca9879a96f4.tar.gz
gcc-31c5b44477907faf937f859808c9aca9879a96f4.tar.bz2
m68k.md (movsf_cf_soft): Provide the same non-mov3q alternatives as movsi_cf.
gcc/ * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q alternatives as movsi_cf. (movsf_cf_hard): Add commentary. From-SVN: r122606
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/m68k/m68k.md6
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cd09c8d..00385a6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2007-03-06 Richard Sandiford <richard@codesourcery.com>
+
+ * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
+ alternatives as movsi_cf.
+ (movsf_cf_hard): Add commentary.
+
2007-03-06 Kazu Hirata <kazu@codesourcery.com>
Richard Sandiford <richard@codesourcery.com>
diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md
index 4c0878a..40c8072 100644
--- a/gcc/config/m68k/m68k.md
+++ b/gcc/config/m68k/m68k.md
@@ -860,13 +860,15 @@
})
(define_insn "movsf_cf_soft"
- [(set (match_operand:SF 0 "nonimmediate_operand" "=r,g")
- (match_operand:SF 1 "general_operand" "g,r"))]
+ [(set (match_operand:SF 0 "nonimmediate_operand" "=r<Q>,g,U")
+ (match_operand:SF 1 "general_operand" "g,r<Q>,U"))]
"TARGET_COLDFIRE && !TARGET_COLDFIRE_FPU"
{
return "move%.l %1,%0";
})
+;; SFmode MEMs are restricted to modes 2-4 if TARGET_COLDFIRE_FPU.
+;; The move instructions can handle all combinations.
(define_insn "movsf_cf_hard"
[(set (match_operand:SF 0 "nonimmediate_operand" "=r<Q>U, f, f,mr,f,r<Q>,f
,m")