blob: 01b9bb416e4d473b9d17b450bb19c494ba2a863e (
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
33
34
35
36
37
38
39
|
/* { dg-do run } */
/* { dg-options "-O3 -march=native" } */
extern void abort (void);
#define N 1024
float a[N], b[N], c[N];
int k[N];
__attribute__((noinline, noclone)) void
f (void)
{
int i;
for (i = 0; i < N; i++)
{
a[i] = b[k[i]];
b[i] = c[i];
}
}
int main ()
{
int i;
for (i = 0; i < N; i++)
{
k[i] = i%2;
b[i] = i;
c[i] = 179;
}
f ();
if (a[2] != 179 || a[3] != 179)
abort ();
return 0;
}
|