[AArch64] Fix SVE testsuite failures for ILP32 (PR 83846)
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / nofp_1.c
blob3fc00368668e2d9cfbf3b6c83d72cb9ebbb84821
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. */
5 /* { dg-options "-march=armv8-a+nofp" } */
7 #include <stdarg.h>
9 typedef int int32x2_t __attribute__ ((__vector_size__ ((8))));
11 int test (int i, ...);
13 int
14 main (int argc, char **argv)
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" } */