blob: a9c5db3873f9ec4dd90b72b6791020d6d9742255 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* { dg-do compile } */
/* { dg-options "-c -O2 -ftree-vectorize" { target *-*-* } } */
static int x;
foo (int n, int *A)
{
int i;
for (i = 0; i < n; i++)
{
if (A[i])
x = 2;
if (A[i + 1])
x = 1;
}
}
|