2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / incoming-8.c
bloba9912d1b1224d2d41afad3b2d1fc28fffd6b4309
1 /* PR target/40838 */
2 /* { dg-do compile { target { { ! *-*-darwin* } && ia32 } } } */
3 /* { dg-options "-w -mstackrealign -O3 -msse2 -mno-avx -mpreferred-stack-boundary=4" } */
5 float
6 foo (float f)
8 float array[128];
9 float x = 0.;
10 int i;
11 for (i = 0; i < sizeof(array) / sizeof(*array); i++)
12 array[i] = f;
13 for (i = 0; i < sizeof(array) / sizeof(*array); i++)
14 x += array[i];
15 return x;
18 /* { dg-final { scan-assembler "andl\[\\t \]*\\$-16,\[\\t \]*%esp" } } */