From b206a75783f8f5a05bb90cad311592c7b717e97c Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 5 Oct 1993 13:42:25 -0700 Subject: [PATCH] (CLASS_MAX_NREGS): For DFmode and !TARGET_FLOAT64 case, return 2 not 4. (CLASS_UNITS): Take size parameter instead of num (words). From-SVN: r5618 --- gcc/config/mips/mips.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 001bd3b8cce..59af3dabc95 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -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 -- 2.30.2