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