]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] [riscv] limit vwaddsub-1.c to rv64
authorAlexandre Oliva <oliva@adacore.com>
Thu, 3 Apr 2025 06:06:50 +0000 (03:06 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 3 Apr 2025 06:06:50 +0000 (03:06 -0300)
The desired vw{add,sub}.wx instructions don't come up on rv32 for the
first two functions, we get v{add,sub}.vx instead.

I suppose this is an oversight, and something about the test is meant
for rv64 only, but the fact that the instruction is spelled out in the
intrinsic name and a different instruction is generated suggests
something may be wrong after all.

for  gcc/testsuite/ChangeLog

* gcc.target/riscv/rvv/base/vwaddsub-1.c: Require rv64.

gcc/testsuite/gcc.target/riscv/rvv/base/vwaddsub-1.c

index 6e027a555f37741bd1401c1be97bd81086c0f6f0..84d3c4cb4c717002a2f78bba1bee8fb83f2a34cf 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target { ! riscv_abi_e } } } */
+/* { dg-do compile { target { { ! riscv_abi_e } && rv64 } } } */
 /* { dg-add-options riscv_v } */
 /* { dg-additional-options "-std=gnu99 -O3 -fno-schedule-insns -fno-schedule-insns2" } */