1/* PR middle-end/37009 */
2/* { dg-do compile { target { { ! *-*-darwin* } && ia32 } } } */
3/* { dg-options "-w -msse2 -mpreferred-stack-boundary=2" } */
4
5#include <stdarg.h>
6#include <emmintrin.h>
7
8extern void bar (int *);
9
10__m128
11foo(va_list arg)
12{
13  int __attribute((aligned(16))) xxx;
14
15  xxx = 2;
16  bar (&xxx);
17  return va_arg (arg, __m128);
18}
19
20/* { dg-final { scan-assembler "andl\[\\t \]*\\$-16,\[\\t \]*%esp" } } */
21