diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.target/aarch64/arg-type-diagnostics-1.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.target/aarch64/arg-type-diagnostics-1.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.target/aarch64/arg-type-diagnostics-1.c b/gcc-4.9/gcc/testsuite/gcc.target/aarch64/arg-type-diagnostics-1.c new file mode 100644 index 000000000..55dd9f66f --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.target/aarch64/arg-type-diagnostics-1.c @@ -0,0 +1,15 @@ +/* { dg-do compile { target { aarch64*-*-* } } } */ +/* { dg-options "-O2" } */ + +#include "arm_neon.h" + +void foo () +{ + int a; + int32x2_t arg1; + int32x2_t arg2; + int32x2_t result; + arg1 = vcreate_s32 (UINT64_C (0x0000ffffffffffff)); + arg2 = vcreate_s32 (UINT64_C (0x16497fffffffffff)); + result = __builtin_aarch64_srsra_nv2si (arg1, arg2, a); /* { dg-error "incompatible type for argument" } */ +} |