Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.target/arm/attr-neon-builtin-fail.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* 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 } */