aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/vect/pr22480.c
blob: a7e238f22717476afbb78fb13739609763b8957e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* { dg-do compile } */
/* { dg-require-effective-target vect_shift } */

void
test_1 (void)
{
  static unsigned int bm[16];
  int j;
  for (j = 0; j < 16; j++)
    bm[j] <<= 8;
}

void
test_2 (int a)
{
  static unsigned int bm[16];
  int j;
  for (j = 0; j < 16; j++)
    bm[j] <<= a;
}

void
test_3 (void)
{
 static unsigned bm[16];
 int am[16];
 int j;
 for (j = 0; j < 16;j++)
   bm[j] <<= am[j];
}

/* { dg-final { cleanup-tree-dump "vect" } } */