2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / attr-neon-builtin-fail2.c
blob0f8ac1b723c286eb5987c6a1f134b621d63bb7e4
1 /* Check that calling a neon builtin from a function compiled with vfp fails. */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target arm_vfp_ok } */
4 /* { dg-options "-O2 -mfloat-abi=softfp" } */
6 extern __simd64_int8_t a, b;
8 __attribute__ ((target ("fpu=vfp")))
9 void
10 foo (__simd128_int16_t *p)
12 *p = (__simd128_int16_t)__builtin_neon_vaddlsv8qi (a, b); /* { dg-error "You must enable NEON instructions .*" } */