[AArch64][12/14] Target attributes and target pragmas tests
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / target_attr_10.c
blobb2c48c4524b611f6e9832eda4d729af10fc48844
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -march=armv8-a+simd" } */
4 /* Using a SIMD intrinsic from a function tagged with nosimd should fail
5 due to inlining rules. */
7 #include "arm_neon.h"
9 __attribute__ ((target ("+nosimd")))
10 uint8x16_t
11 foo (uint8x16_t a, uint8x16_t b, uint8x16_t c)
13 return vbslq_u8 (a, b, c); /* { dg-error "called from here" } */
16 /* { dg-error "inlining failed in call to always_inline" "" { target *-*-* } 0 } */