]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix test target selector
authorEdwin Lu <ewlu@rivosinc.com>
Tue, 3 Dec 2024 01:29:55 +0000 (17:29 -0800)
committerEdwin Lu <ewlu@rivosinc.com>
Tue, 3 Dec 2024 17:53:20 +0000 (09:53 -0800)
The previous target selector was not properly gating the tests to rv32
and rv64 targets. This was triggering an excess failure on rv32 targets
where it would try to run the zbc64 tests. Fix selector

gcc/testsuite/ChangeLog:

* gcc.target/riscv/crc-builtin-zbc32.c: Fix selector.
* gcc.target/riscv/crc-builtin-zbc64.c: Ditto.

Signed-off-by: Edwin Lu <ewlu@rivosinc.com>
gcc/testsuite/gcc.target/riscv/crc-builtin-zbc32.c
gcc/testsuite/gcc.target/riscv/crc-builtin-zbc64.c

index 3eb4be78dcb594a78bede08f1a891945e5b93e84..ca90feaef26b6b9e58d10d43341ea6eee7c60c45 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target { riscv32*-*-* } } } */
+/* { dg-do compile { target { rv32 } } } */
 /* { dg-options "-march=rv32gc_zbc" } */
 
 #include <stdint-gcc.h>
index d99a78daaa93b0a565e42f9508fd62bffebab1d1..f31a8bd949f5efe046d8852afe441709ae71c9ec 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target { riscv64*-*-* } } } */
+/* { dg-do compile { target { rv64 } } } */
 /* { dg-options "-march=rv64gc_zbc" } */
 
 #include <stdint-gcc.h>