summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/incoming-4.c
blob: 80c169c24696e8b106bbc285a08f714e0d1eebba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR middle-end/37009 */
/* { dg-do compile { target { { ! *-*-darwin* } && ilp32 } } } */
/* { dg-options "-w -msse2 -mpreferred-stack-boundary=2" } */

#include <stdarg.h>
#include <emmintrin.h>

extern void bar (int *);

__m128
foo(va_list arg) 
{
  int __attribute((aligned(16))) xxx;

  xxx = 2;
  bar (&xxx);
  return va_arg (arg, __m128);
}

/* { dg-final { scan-assembler "andl\[\\t \]*\\$-16,\[\\t \]*%esp" } } */