Commit 30a38382 by Richard Sandiford Committed by Richard Sandiford

mips.c (mips_class_max_nregs): Return the number of words in the mode.

	* config/mips/mips.c (mips_class_max_nregs): Return the number of
	words in the mode.

From-SVN: r66950
parent beb14bd5
2003-05-19 Richard Sandiford <rsandifo@redhat.com> 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips.c (mips_class_max_nregs): Return the number of
words in the mode.
2003-05-19 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips.c (override_options): Disable explicit * config/mips/mips.c (override_options): Disable explicit
relocs for old ABIs unless using gas. relocs for old ABIs unless using gas.
......
...@@ -9014,18 +9014,19 @@ mips_secondary_reload_class (class, mode, x, in_p) ...@@ -9014,18 +9014,19 @@ mips_secondary_reload_class (class, mode, x, in_p)
return NO_REGS; return NO_REGS;
} }
/* This function returns the maximum number of consecutive registers /* Implement CLASS_MAX_NREGS.
needed to represent mode MODE in registers of class CLASS. */
Usually all registers are word-sized. The only supported exception
is -mgp64 -msingle-float, which has 64-bit words but 32-bit float
registers. A word-based calculation is correct even in that case,
since -msingle-float disallows multi-FPR values. */
int int
mips_class_max_nregs (class, mode) mips_class_max_nregs (class, mode)
enum reg_class class; enum reg_class class ATTRIBUTE_UNUSED;
enum machine_mode mode; enum machine_mode mode;
{ {
if (class == FP_REGS) return (GET_MODE_SIZE (mode) + UNITS_PER_WORD - 1) / UNITS_PER_WORD;
return FP_INC;
else
return (GET_MODE_SIZE (mode) + UNITS_PER_WORD - 1) / UNITS_PER_WORD;
} }
bool bool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment