* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / mgeneral-regs_2.c
blob859019970ae044d8b36a095329c9e47a2826a399
1 /* { dg-options "-mgeneral-regs-only" } */
3 #include <stdarg.h>
5 typedef int int32x2_t __attribute__ ((__vector_size__ ((8))));
7 int
8 test (int i, ...)
10 va_list argp;
11 va_start (argp, i);
12 int32x2_t x = (int32x2_t) {0, 1};
13 x += va_arg (argp, int32x2_t); /* { dg-error "'-mgeneral-regs-only' is incompatible with vector varargs" } */
14 return x[0] + x[1];