From: Kyrylo Tkachov Date: Wed, 20 May 2015 11:41:45 +0000 (+0000) Subject: [AArch64][obvious] In aarch64_class_max_nregs use UNITS_PER_VREG and UNITS_PER_WORD X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bd1191163cda036d4d82ba7dbe1c07ce97d210d;p=gcc.git [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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9ef04cb2665..af353faa875 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-05-20 Kyrylo Tkachov + + * 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 * config/mips/mips.h (micromips_globals): Declare. diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 6f71e6649d6..8c25d759f7a 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -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;