PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / stack-realign-win.c
blobe27a565054295dc1f23849776e8c0e76e6383f14
1 /* { dg-do compile { target *-*-mingw* *-*-cygwin* } } */
2 /* { dg-require-effective-target ia32 } */
3 /* { dg-options "-msse -O" } */
5 extern void abort (void);
7 typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__));
9 static __m128
10 load_m128 (float *e)
12 return * (__m128 *) e;
15 typedef union
17 __m128 x;
18 float a[4];
19 } union128;
21 void test (void)
23 union128 u;
24 float e[4] __attribute__ ((aligned (16)))
25 = {2134.3343, 1234.635654, 1.2234, 876.8976};
26 int i;
28 u.x = load_m128 (e);
30 for (i = 0; i < 4; i++)
31 if (u.a[i] != e[i])
32 abort ();
35 /* { dg-final { scan-assembler "andl\\t\\$-16, %esp" } } */