sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Add the case where we need to reload fpul from...
authorAndrew Haley <aph@cygnus.com>
Wed, 24 Nov 1999 18:57:08 +0000 (18:57 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Wed, 24 Nov 1999 18:57:08 +0000 (18:57 +0000)
Wed Nov 24 18:39:18 1999  Andrew Haley  <aph@cygnus.com>

* config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Add the case
where we need to reload fpul from a system register.

From-SVN: r30654

gcc/ChangeLog
gcc/config/sh/sh.h

index 539ed2f..93f50bd 100644 (file)
@@ -1,3 +1,8 @@
+Wed Nov 24 18:39:18 1999  Andrew Haley  <aph@cygnus.com>
+
+       * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Add the case
+       where we need to reload fpul from a system register.
+
 1999-11-24  Andreas Jaeger  <aj@suse.de>
 
        * config/mips/linux.h (CPP_PREDEFINES): Added.
index d65d282..789a1f4 100644 (file)
@@ -779,7 +779,9 @@ extern enum reg_class reg_class_from_letter[];
    ? FPUL_REGS                                                         \
    : ((CLASS) == FPUL_REGS                                             \
       && (GET_CODE (X) == MEM                                          \
-         || (GET_CODE (X) == REG && REGNO (X) >= FIRST_PSEUDO_REGISTER)))\
+         || (GET_CODE (X) == REG                                       \
+             && (REGNO (X) >= FIRST_PSEUDO_REGISTER                    \
+                 || system_reg_operand (X, VOIDmode)))))               \
    ? GENERAL_REGS                                                      \
    : (((CLASS) == MAC_REGS || (CLASS) == PR_REGS)                      \
       && GET_CODE (X) == REG && REGNO (X) > 15                         \