aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/nofp_1.c
blob: 3fc00368668e2d9cfbf3b6c83d72cb9ebbb84821 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-skip-if "conflicting -march" { *-*-* } { "-march=*" } { "-march=*+nofp" } } */
/* If there are multiple -march's, the latest wins; skip the test either way.
   -march overrides -mcpu, so there is no possibility of conflict.  */

/* { dg-options "-march=armv8-a+nofp" } */

#include <stdarg.h>

typedef int int32x2_t __attribute__ ((__vector_size__ ((8))));

int test (int i, ...);

int
main (int argc, char **argv)
{
  int32x2_t a = (int32x2_t) {0, 1};
  int32x2_t b = (int32x2_t) {2, 3};
  return test (2, a, b); /* { dg-error "'\\+nofp' feature modifier is incompatible with vector argument" } */
}