]> gcc.gnu.org Git - gcc.git/commitdiff
(SECONDARY_MEMORY_NEEDED): Define to force reload to
authorJim Wilson <wilson@gcc.gnu.org>
Tue, 21 Jul 1992 19:34:37 +0000 (12:34 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 21 Jul 1992 19:34:37 +0000 (12:34 -0700)
handle any copy between GENERAL_REGS and FP_REGS.

From-SVN: r1657

gcc/config/sparc/sparc.h

index d6d43ef7e99d109d0aabfd5f9f35bfe889985432..c3c96143af7ca8930990adbbea8ae987ac0fd38c 100644 (file)
@@ -569,6 +569,13 @@ extern char leaf_reg_backmap[];
 #define SECONDARY_INPUT_RELOAD_CLASS(CLASS, MODE, IN) \
   (flag_pic && pic_address_needs_scratch (IN) ? GENERAL_REGS : NO_REGS)
 
+/* On SPARC it is not possible to directly move data between 
+   GENERAL_REGS and FP_REGS.  */
+#define SECONDARY_MEMORY_NEEDED(CLASS1, CLASS2, MODE)  \
+  ((CLASS1 == FP_REGS && CLASS2 == GENERAL_REGS)       \
+   || (CLASS1 == GENERAL_REGS && CLASS2 == FP_REGS))
+       
+
 /* Return the maximum number of consecutive registers
    needed to represent mode MODE in a register of class CLASS.  */
 /* On SPARC, this is the size of MODE in words.  */
This page took 0.063649 seconds and 5 git commands to generate.