blob: fb6e0b9cd66a9119b50043ffe80e27a400165cba [file] [log] [blame]
/* Check that calling a neon builtin from a function compiled with vfp fails. */
/* { dg-do compile } */
/* { dg-require-effective-target arm_fp_ok } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-options "-O2" } */
/* { dg-add-options arm_fp } */
#include <arm_neon.h>
__attribute__ ((target ("fpu=vfp")))
void
foo (uint8x16_t *p)
{
*p = vmovq_n_u8 (3); /* { dg-message "called from here" } */
}
/* { dg-error "inlining failed in call to 'always_inline'" "" { target *-*-* } 0 } */