arm: Add new tests for comparison vectorization with Neon and MVE
authorChristophe Lyon <christophe.lyon@arm.com>
Wed, 13 Oct 2021 09:15:49 +0000 (09:15 +0000)
committerChristophe Lyon <christophe.lyon@foss.st.com>
Tue, 22 Feb 2022 15:55:05 +0000 (15:55 +0000)
commit7b1cce9273ce49fee5f5ebafb22107b97e3e7741
tree33d8c340dc10d1cad54933931fb79369dc1fa17c
parent39c0b8f1ac4be2fdaa309733bbae11fedc6b8b3d
arm: Add new tests for comparison vectorization with Neon and MVE

This patch mainly adds Neon tests similar to existing MVE ones,
to make sure we do not break Neon when fixing MVE.

mve-vcmp-f32-2.c is similar to mve-vcmp-f32.c but uses a conditional
with 2.0f and 3.0f constants to help scan-assembler-times.

Most of the work of this patch series was carried out while I was
working at STMicroelectronics as a Linaro assignee.

2022-02-22  Christophe Lyon <christophe.lyon@arm.com>

gcc/testsuite/
* gcc.target/arm/simd/mve-vcmp-f32-2.c: New.
* gcc.target/arm/simd/neon-compare-1.c: New.
* gcc.target/arm/simd/neon-compare-2.c: New.
* gcc.target/arm/simd/neon-compare-3.c: New.
* gcc.target/arm/simd/neon-compare-scalar-1.c: New.
* gcc.target/arm/simd/neon-vcmp-f16.c: New.
* gcc.target/arm/simd/neon-vcmp-f32-2.c: New.
* gcc.target/arm/simd/neon-vcmp-f32-3.c: New.
* gcc.target/arm/simd/neon-vcmp-f32.c: New.
* gcc.target/arm/simd/neon-vcmp.c: New.
gcc/testsuite/gcc.target/arm/simd/mve-vcmp-f32-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/simd/neon-compare-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/simd/neon-compare-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/simd/neon-compare-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/simd/neon-compare-scalar-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/simd/neon-vcmp-f16.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/simd/neon-vcmp-f32-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/simd/neon-vcmp-f32-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/simd/neon-vcmp-f32.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/simd/neon-vcmp.c [new file with mode: 0644]