Commit 7bd11911 by Kyrylo Tkachov Committed by Kyrylo Tkachov

[AArch64][obvious] In aarch64_class_max_nregs use UNITS_PER_VREG and UNITS_PER_WORD

	* config/aarch64/aarch64.c (aarch64_class_max_nregs):
	Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
	values.

From-SVN: r223439
parent ba57dd12
2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/aarch64.c (aarch64_class_max_nregs):
Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
values.
2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
* config/mips/mips.h (micromips_globals): Declare.
......
......@@ -4922,8 +4922,9 @@ aarch64_class_max_nregs (reg_class_t regclass, machine_mode mode)
case FP_REGS:
case FP_LO_REGS:
return
aarch64_vector_mode_p (mode) ? (GET_MODE_SIZE (mode) + 15) / 16 :
(GET_MODE_SIZE (mode) + 7) / 8;
aarch64_vector_mode_p (mode)
? (GET_MODE_SIZE (mode) + UNITS_PER_VREG - 1) / UNITS_PER_VREG
: (GET_MODE_SIZE (mode) + UNITS_PER_WORD - 1) / UNITS_PER_WORD;
case STACK_REG:
return 1;
......
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