blob: 31d9e6180be8ddfa30f72a20e2be0a8d2dce8ab2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* PR target/40838 */
/* { dg-do compile { target { { ! *-*-darwin* } && ilp32 } } } */
/* { dg-options "-w -mstackrealign -fomit-frame-pointer -O3 -march=barcelona -mpreferred-stack-boundary=4" } */
struct s {
int x[8];
};
void g(struct s *);
void f()
{
int i;
struct s s;
for (i = 0; i < sizeof(s.x) / sizeof(*s.x); i++) s.x[i] = 0;
g(&s);
}
/* { dg-final { scan-assembler "andl\[\\t \]*\\$-16,\[\\t \]*%esp" } } */
|