summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/stack-usage-realign.c
blob: 03d9d4174893c9b2e1c65f6c22e6ce262206f21a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-skip-if "no stack realignment" { *-*-darwin* } { "*" } { "" } } */
/* { dg-options "-fstack-usage -msse2 -mforce-drap" } */

typedef int __attribute__((vector_size(16))) vec;

vec foo (vec v)
{
  return v;
}

int main (void)
{
  vec V;
  V = foo (V);
  return 0;
}

/* { dg-final { scan-stack-usage "main\t48\tdynamic,bounded" } } */
/* { dg-final { cleanup-stack-usage } } */