Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr113281-2.c
blob3a1170c28b612dfecbec9d560652f93ccf1e820e
1 /* { dg-do compile } */
3 #define N 128
5 short x[N];
6 short y[N];
8 void
9 f1 (void)
11 for (int i = 0; i < N; ++i)
12 x[i] >>= y[i];
15 void
16 f2 (void)
18 for (int i = 0; i < N; ++i)
19 x[i] >>= (y[i] < 32 ? y[i] : 32);
22 void
23 f3 (void)
25 for (int i = 0; i < N; ++i)
26 x[i] >>= (y[i] < 31 ? y[i] : 31);
29 void
30 f4 (void)
32 for (int i = 0; i < N; ++i)
33 x[i] >>= (y[i] & 31);
36 void
37 f5 (void)
39 for (int i = 0; i < N; ++i)
40 x[i] >>= 0x8000 >> y[i];
43 void
44 f6 (void)
46 for (int i = 0; i < N; ++i)
47 x[i] >>= 0x8000 >> (y[i] & 31);
50 /* { dg-final { scan-tree-dump-not {can narrow[^\n]+>>} "vect" } } */