From: Alexandre Oliva Date: Thu, 3 Apr 2025 06:06:50 +0000 (-0300) Subject: [testsuite] [riscv] limit vwaddsub-1.c to rv64 X-Git-Tag: basepoints/gcc-16~382 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=366dd47dc560a37cdf01a4c49a446596564419a0;p=thirdparty%2Fgcc.git [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. --- 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 6e027a555f3..84d3c4cb4c7 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" } */