[testsuite] Fix directives order
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / target_attr_10.c
blob1849904711258fe182cfd30d616c25f650df43ed
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -march=armv8-a+simd -mcpu=generic" } */
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-message "called from here" } */
16 /* { dg-error "inlining failed in call to always_inline" "" { target *-*-* } 0 } */