https://gcc.gnu.org/g:366dd47dc560a37cdf01a4c49a446596564419a0

commit r15-9171-g366dd47dc560a37cdf01a4c49a446596564419a0
Author: Alexandre Oliva <ol...@adacore.com>
Date:   Thu Apr 3 03:06:50 2025 -0300

    [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:
---
 gcc/testsuite/gcc.target/riscv/rvv/base/vwaddsub-1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 6e027a555f37..84d3c4cb4c71 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" } */

Reply via email to