diff options
author | Alexandre Oliva <oliva@adacore.com> | 2025-04-03 03:06:50 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2025-04-03 03:06:50 -0300 |
commit | 366dd47dc560a37cdf01a4c49a446596564419a0 (patch) | |
tree | 27511616aef102879d13f4c2b5abd092fd631342 | |
parent | b6d3a23cb027eb48a01ee5d70c6c72ab3bcde467 (diff) | |
download | gcc-366dd47dc560a37cdf01a4c49a446596564419a0.zip gcc-366dd47dc560a37cdf01a4c49a446596564419a0.tar.gz gcc-366dd47dc560a37cdf01a4c49a446596564419a0.tar.bz2 |
[testsuite] [riscv] limit vwaddsub-1.c to rv64
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.
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/rvv/base/vwaddsub-1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/vwaddsub-1.c b/gcc/testsuite/gcc.target/riscv/rvv/base/vwaddsub-1.c index 6e027a5..84d3c4c 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/vwaddsub-1.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/vwaddsub-1.c @@ -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" } */ |