Debian Codegraph @

gcc/testsuite/gcc.target/sparc/20181129-1.c

raw
1 /* PR target/87807 */
2 /* Reported by Rainer Orth <[email protected]> */
3
4 /* { dg-do run } */
5 /* { dg-options "-std=c99" } */
6
7 #include <stdarg.h>
8
9 typedef float __attribute__ ((vector_size (8))) vector_float;
10
11 vector_float v2sf = { 1.0f, 2.0f };
12
13 void
14 f (vector_float a, ...)
15 {
16 va_list argp;
17 va_start (argp, a);
18 vector_float x = va_arg (argp, vector_float);
19 if (x[0] != a[0] || x[1] != a[1])
20 __builtin_abort ();
21 va_end (argp);
22 }
23
24 int
25 main (void)
26 {
27 f (v2sf, v2sf);
28 return 0;
29 }