Debian Codegraph @

gcc/testsuite/gcc.target/arm/attr-neon-builtin-fail.c

raw
1 /* Check that calling a neon builtin from a function compiled with vfp fails. */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target arm_neon_h_ok } */
4 /* { dg-options "-O2" } */
5 /* { dg-add-options arm_neon_h } */
6
7 #include <arm_neon.h>
8
9 __attribute__ ((target ("fpu=vfp")))
10 void
11 foo (uint8x16_t *p)
12 {
13 *p = vmovq_n_u8 (3); /* { dg-message "called from here" } */
14 }
15
16 /* { dg-error "inlining failed in call to 'always_inline'" "" { target *-*-* } 0 } */