| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O3 -mlasx" } */ |
| 3 |
/* { dg-final { scan-assembler-times "xvldrepl.w" 2} } */ |
| 4 |
|
| 5 |
#define N 258 |
| 6 |
|
| 7 |
float a[N], b[N], c[N]; |
| 8 |
|
| 9 |
void |
| 10 |
test () |
| 11 |
{ |
| 12 |
for (int i = 0; i < 256; i++) |
| 13 |
{ |
| 14 |
a[i] = c[0] * b[i] + c[1]; |
| 15 |
} |
| 16 |
} |