aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr84278.c
blob: 2fa84802c6790d849be3879cf95eda0f82276237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-O3 -msse2" } */

float A[1024];
float B[1024];
int s;

void foo(void)
{
  int i;
  for (i = 0; i < 128; i++)
    {
      B[i*2+0] = A[i*s+0];
      B[i*2+1] = A[i*s+1];
    }
}

/* { dg-final { scan-assembler-not "\\\(%.sp\\\)" { target { nonpic || { ! ia32 } } } } } */
/* ia32's get_pc_thunk variants all load from %(esp).  */
/* { dg-final { scan-assembler-times "movl\[ \t]*\\\(%.sp\\\)" 1 { target { ! { nonpic || { ! ia32 } } } } } } */