]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
(MEMORY_MOVE_COST): Make processor-dependent.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 28 Jun 1994 09:33:48 +0000 (05:33 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 28 Jun 1994 09:33:48 +0000 (05:33 -0400)
From-SVN: r7577

gcc/config/rs6000/rs6000.h

index 947bc193f785d6acc676f7fafd56cfa84b1c68ea..5b15aa9042b6384cc62f9fdbe763e3fc26d71f3a 100644 (file)
@@ -485,7 +485,11 @@ extern char *rs6000_cpu_string;
 
    On the RS/6000, bump this up a bit.  */
 
-#define MEMORY_MOVE_COST(MODE)  6
+#define MEMORY_MOVE_COST(MODE)         \
+  ((GET_MODE_CLASS (MODE) == MODE_FLOAT        \
+    && (rs6000_cpu == PROCESSOR_RIOS1 || rs6000_cpu == PROCESSOR_PPC601) \
+    ? 3 : 2) \
+   + 4)
 
 /* Specify the cost of a branch insn; roughly the number of extra insns that
    should be added to avoid a branch.