Ok for trunk and releases/gcc-14?

--

Cortex-M55 supports VFP, but does not contain neon, so the test is
invalid in this context.

Without this patch, the following error can be seen in the logs:

.../attr-neon-builtin-fail2.c: In function 'foo':
.../attr-neon-builtin-fail2.c:13:27: error: implicit declaration of function 
'__builtin_neon_vaddlsv8qi'; did you mean '__builtin_neon_vabshf'? 
[-Wimplicit-function-declaration]
.../attr-neon-builtin-fail2.c:13:3: error: cannot convert a value of type 'int' 
to vector type '__simd128_int16_t' which has different size

gcc/testsuite/ChangeLog:

        * attr-neon-builtin-fail2.c: Check ET neon.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svens...@foss.st.com>
Co-authored-by: Yvan ROUX <yvan.r...@foss.st.com>
---
 gcc/testsuite/gcc.target/arm/attr-neon-builtin-fail2.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.target/arm/attr-neon-builtin-fail2.c 
b/gcc/testsuite/gcc.target/arm/attr-neon-builtin-fail2.c
index 9cb5a2ebb90..8942b0d68f1 100644
--- a/gcc/testsuite/gcc.target/arm/attr-neon-builtin-fail2.c
+++ b/gcc/testsuite/gcc.target/arm/attr-neon-builtin-fail2.c
@@ -1,6 +1,7 @@
 /* Check that calling a neon builtin from a function compiled with vfp fails.  
*/
 /* { dg-do compile } */
 /* { dg-require-effective-target arm_vfp_ok } */
+/* { dg-require-effective-target arm_neon_ok } */
 /* { dg-options "-O2" } */
 /* { dg-add-options arm_vfp } */
 
-- 
2.25.1

Reply via email to