From: Christophe Lyon Date: Mon, 17 May 2021 12:02:40 +0000 (+0000) Subject: testsuite/arm: Add mve-vadd-scalar-1.c test X-Git-Tag: basepoints/gcc-13~7481 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ca93e302bf496b71bee839b3c121e1f7363fcf0;p=thirdparty%2Fgcc.git testsuite/arm: Add mve-vadd-scalar-1.c test This patch adds a test for the scalar mode of vadd, precisely noting that we do not yet use the T2 variants of vadd, which take a scalar as final argument. 2021-05-17 Christophe Lyon gcc/testsuite/ * gcc.target/arm/simd/mve-vadd-scalar-1.c: New. --- diff --git a/gcc/testsuite/gcc.target/arm/simd/mve-vadd-scalar-1.c b/gcc/testsuite/gcc.target/arm/simd/mve-vadd-scalar-1.c new file mode 100644 index 000000000000..bbf70e141461 --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/simd/mve-vadd-scalar-1.c @@ -0,0 +1,47 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target arm_v8_1m_mve_fp_ok } */ +/* { dg-add-options arm_v8_1m_mve_fp } */ +/* { dg-additional-options "-O3" } */ + +#include + +#define FUNC_IMM(SIGN, TYPE, BITS, NB, OP, NAME) \ + void test_ ## NAME ##_ ## SIGN ## BITS ## x ## NB (TYPE##BITS##_t * __restrict__ dest, \ + TYPE##BITS##_t *a) { \ + int i; \ + for (i=0; i