From: H.J. Lu Date: Wed, 21 May 2008 19:00:47 +0000 (+0000) Subject: i386.c (ix86_expand_vector_init_general): Use GET_MODE_NUNITS (mode). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e73caa00550685794023d65d03ea3833705ba7e8;p=gcc.git i386.c (ix86_expand_vector_init_general): Use GET_MODE_NUNITS (mode). 2008-05-21 H.J. Lu * config/i386/i386.c (ix86_expand_vector_init_general): Use GET_MODE_NUNITS (mode). From-SVN: r135732 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 72915d52ca1..aaeb460e4ac 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-05-21 H.J. Lu + + * config/i386/i386.c (ix86_expand_vector_init_general): Use + GET_MODE_NUNITS (mode). + 2008-05-21 Peter Bergner * doc/invoke.texi: Add cpu_type's 464 and 464fp. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index c36b4255066..651eb527798 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -24090,7 +24090,7 @@ ix86_expand_vector_init_general (bool mmx_ok, enum machine_mode mode, case V4SImode: case V2DFmode: case V2DImode: - n = GET_MODE_SIZE (mode) / GET_MODE_SIZE (GET_MODE_INNER (mode)); + n = GET_MODE_NUNITS (mode); for (i = 0; i < n; i++) ops[i] = XVECEXP (vals, 0, i); ix86_expand_vector_init_concat (mode, target, ops, n); @@ -24105,7 +24105,7 @@ ix86_expand_vector_init_general (bool mmx_ok, enum machine_mode mode, if (!TARGET_SSE2) break; - n = GET_MODE_SIZE (mode) / GET_MODE_SIZE (GET_MODE_INNER (mode)); + n = GET_MODE_NUNITS (mode); for (i = 0; i < n; i++) ops[i] = XVECEXP (vals, 0, i); ix86_expand_vector_init_interleave (mode, target, ops, n >> 1);