OSDN Git Service

PR middle-end/29274
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / vararg-1.c
1 /* PR middle-end/36858 */
2 /* { dg-do run } */
3 /* { dg-options "-w" { target { lp64 } } } */
4 /* { dg-options "-w -msse2 -mpreferred-stack-boundary=2" { target { ilp32 } } } */
5
6 #include "sse2-check.h"
7 #include <stdarg.h>
8 #include <emmintrin.h>
9
10 int
11 __attribute__((noinline))
12 test (int a, ...)
13 {
14   return a;
15 }
16
17 __m128 n1 = { -283.3, -23.3, 213.4, 1119.03 };
18
19 int
20 __attribute__((noinline))
21 foo (void)
22 {
23   return test (1, n1);
24 }
25
26 static void
27 __attribute__((noinline))
28 sse2_test (void)
29 {
30   if (foo () != 1)
31     abort ();
32 }