[AArch64] Fix ICES with -mgeneral-regs-only / -march=...+nofp
[gcc.git] / gcc / testsuite / gcc.target / aarch64 / nofp_1.c
1 /* { dg-skip-if "conflicting -march" { *-*-* } { "-march=*" } { "-march=*+nofp" } } */
2 /* If there are multiple -march's, the latest wins; skip the test either way.
3 -march overrides -mcpu, so there is no possibility of conflict. */
4
5 /* { dg-options "-march=armv8-a+nofp" } */
6
7 #include <stdarg.h>
8
9 typedef int int32x2_t __attribute__ ((__vector_size__ ((8))));
10
11 int test (int i, ...);
12
13 int
14 main (int argc, char **argv)
15 {
16 int32x2_t a = (int32x2_t) {0, 1};
17 int32x2_t b = (int32x2_t) {2, 3};
18 return test (2, a, b); /* { dg-error "'\\+nofp' feature modifier is incompatible with vector argument" } */
19 }