2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr81815.c
blob1eb7c59b70e1a13cf217899d04c55fd60949872f
1 /* { dg-do run } */
3 int __attribute__ ((noinline, noclone))
4 f (int *x, int n)
6 int b = 13;
7 for (int i = 0; i < n; ++i)
9 int next = x[i];
10 b = b < 100 ? next : 200;
12 return b;
15 static int res[32];
17 int
18 main (void)
20 for (int i = 0; i < 32; ++i)
21 res[i] = i;
22 res[15] = 100;
23 if (f (res, 32) != 200)
24 __builtin_abort ();
25 return 0;