2 /* { dg-require-effective-target ia32 } */
3 /* { dg-require-effective-target sse2 } */
4 /* { dg-options "-std=gnu99 -msse2 -mstackrealign -mpreferred-stack-boundary=4" } */
6 #include "sse2-check.h"
10 __m128i
__attribute__ ((__noinline__
))
11 vector_using_function ()
13 volatile __m128i vx
; /* We want to force a vector-aligned store into the stack. */
14 vx
= _mm_xor_si128 (vx
, vx
);
17 int __attribute__ ((__noinline__
))
18 self_aligning_function (int x
, int y
)
20 __m128i ignored
= vector_using_function ();
30 asm ("pushl %esi"); /* Disalign runtime stack. */
31 result
= self_aligning_function (g_1
, g_2
);