commit 8abd208611b50e8f477b6efb8d8604b3390a9072
Author: Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Date: Mon May 18 12:01:24 2015 +0100
[AArch64] In aarch64_class_max_nregs use UNITS_PER_VREG and UNITS_PER_WORD
@@ -4923,8 +4923,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;