| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O3 -msse2" } */ |
| 3 |
|
| 4 |
float A[1024]; |
| 5 |
float B[1024]; |
| 6 |
int s; |
| 7 |
|
| 8 |
void foo(void) |
| 9 |
{ |
| 10 |
int i; |
| 11 |
for (i = 0; i < 128; i++) |
| 12 |
{ |
| 13 |
B[i*2+0] = A[i*s+0]; |
| 14 |
B[i*2+1] = A[i*s+1]; |
| 15 |
} |
| 16 |
} |
| 17 |
|
| 18 |
/* { dg-final { scan-assembler-not "\\\(%.sp\\\)" { target { nonpic || { ! ia32 } } } } } */ |
| 19 |
/* ia32's get_pc_thunk variants all load from %(esp). */ |
| 20 |
/* { dg-final { scan-assembler-times "movl\[ \t]*\\\(%.sp\\\)" 1 { target { ! { nonpic || { ! ia32 } } } } } } */ |