OSDN Git Service

* gcc.target/i386/fastcall-sseregparm.c: Include sse-check.h.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / pr24306.c
1 /* { dg-do run } */
2 /* { dg-options "-msse" } */
3
4 #include "sse-check.h"
5
6 extern void abort(void);
7 typedef int __attribute__ ((vector_size (16))) foo_t;
8
9 struct s
10 {
11   foo_t f[0];
12 } s1;
13
14 void
15 check (int x, ...) __attribute__((noinline));
16 void
17 check (int x, ...)
18 {
19   int y;
20   __builtin_va_list ap;
21
22   __builtin_va_start (ap, x);
23   __builtin_va_arg (ap, struct s);
24   y = __builtin_va_arg (ap, int);
25
26   if (y != 7)
27     abort ();
28 }
29
30 static void
31 sse_test (void)
32 {
33   check (3, s1, 7);
34 }