aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/pr52686.c
blob: 66cbc575eeca07a0c45fd35ed7c51e8cc8ef8f66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR target/52375 */
/* { dg-do compile } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-options "-march=armv7-a -mfloat-abi=softfp -mfpu=neon -O -ftree-vectorize" } */

unsigned int output[4];

void test (unsigned short *p)
{
  unsigned int x = *p;
  if (x)
    {
      output[0] = x << 1;
      output[1] = x << 1;
      output[2] = x << 1;
      output[3] = x << 1;
    }
}