(SECONDARY_MEMORY_NEEDED): New macro.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 1 Sep 1993 22:41:53 +0000 (18:41 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 1 Sep 1993 22:41:53 +0000 (18:41 -0400)
From-SVN: r5242

gcc/config/rs6000/rs6000.h

index f50c6b3a160987a4ebcd4acb289a1a4ebb01937b..e4706fccaeca2e0241006ddc3f3121172c78fd9b 100644 (file)
@@ -558,6 +558,12 @@ enum reg_class { NO_REGS, BASE_REGS, GENERAL_REGS, FLOAT_REGS,
 #define SECONDARY_RELOAD_CLASS(CLASS,MODE,IN) \
   secondary_reload_class (CLASS, MODE, IN)
 
+/* If we are copying between FP registers and anything else, we need a memory
+   location.  */
+
+#define SECONDARY_MEMORY_NEEDED(CLASS1,CLASS2,MODE) \
+ ((CLASS1) != (CLASS2) && ((CLASS1) == FLOAT_REGS || (CLASS2) == FLOAT_REGS))
+
 /* Return the maximum number of consecutive registers
    needed to represent mode MODE in a register of class CLASS.