]> gcc.gnu.org Git - gcc.git/commitdiff
(CLASS_MAX_NREGS): For DFmode and !TARGET_FLOAT64 case,
authorJim Wilson <wilson@gcc.gnu.org>
Tue, 5 Oct 1993 20:42:25 +0000 (13:42 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 5 Oct 1993 20:42:25 +0000 (13:42 -0700)
return 2 not 4.
(CLASS_UNITS): Take size parameter instead of num (words).

From-SVN: r5618

gcc/config/mips/mips.h

index 001bd3b8cce741589ecb9ce2cbb8c69f5999a7f9..59af3dabc959594c5fcb556e02d10474795923b8 100644 (file)
@@ -1472,15 +1472,15 @@ extern enum reg_class mips_char_to_class[];
 /* Return the maximum number of consecutive registers
    needed to represent mode MODE in a register of class CLASS.  */
 
-#define CLASS_UNITS(mode, num)                                         \
-  ((GET_MODE_SIZE (mode) + ((num) * UNITS_PER_WORD) - 1) / ((num) * UNITS_PER_WORD))
+#define CLASS_UNITS(mode, size)                                                \
+  ((GET_MODE_SIZE (mode) + (size) - 1) / (size))
 
 #define CLASS_MAX_NREGS(CLASS, MODE)                                   \
-  (((CLASS) == FP_REGS && TARGET_FLOAT64)                              \
-       ? CLASS_UNITS (MODE, 2)                                         \
-       : (((CLASS) == FP_REGS)                                         \
-               ? (2*CLASS_UNITS (MODE, 1))                             \
-               : CLASS_UNITS (MODE, 1)))
+  ((CLASS) == FP_REGS                                                  \
+   ? (TARGET_FLOAT64                                                   \
+      ? CLASS_UNITS (MODE, 8)                                          \
+      : 2 * CLASS_UNITS (MODE, 8))                                     \
+   : CLASS_UNITS (MODE, UNITS_PER_WORD))
 
 /* If defined, this is a C expression whose value should be
    nonzero if the insn INSN has the effect of mysteriously
This page took 0.078589 seconds and 5 git commands to generate.