From 9e6b3b4a22cb0c9151eb39abcdc9847daf5a5d61 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Mon, 10 May 2021 12:50:48 +0000 Subject: [PATCH] testsuite/arm: Add mve-vmul-scalar-1.c test Support for vmul has been present for a while, but it was lacking a test for the scalar variant. This patch adds one, precisely noting that we do not yet use the T2 variants of vmul, which take a scalar as final argument. 2021-05-10 Christophe Lyon gcc/testsuite/ * gcc.target/arm/simd/mve-vmul-scalar-1.c: New. --- .../gcc.target/arm/simd/mve-vmul-scalar-1.c | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 gcc/testsuite/gcc.target/arm/simd/mve-vmul-scalar-1.c diff --git a/gcc/testsuite/gcc.target/arm/simd/mve-vmul-scalar-1.c b/gcc/testsuite/gcc.target/arm/simd/mve-vmul-scalar-1.c new file mode 100644 index 0000000..22be452 --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/simd/mve-vmul-scalar-1.c @@ -0,0 +1,60 @@ +/* { 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