From ab4a5fc941f08f7db76538aba22f91bc15fe7a17 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 28 Jun 1994 05:33:48 -0400 Subject: [PATCH] (MEMORY_MOVE_COST): Make processor-dependent. From-SVN: r7577 --- gcc/config/rs6000/rs6000.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 947bc193f785..5b15aa9042b6 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -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. -- 2.47.2