]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] [riscv] limit mcpu-xiangshan-nanhu.c to rv64
authorAlexandre Oliva <oliva@adacore.com>
Thu, 3 Apr 2025 06:06:47 +0000 (03:06 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 3 Apr 2025 06:06:47 +0000 (03:06 -0300)
The testcase makes the -march option conditional on rv64, and #errors
out if the desired CPU properties are not active.  This makes the test
fail on rv32.  Arrange to skip the test on rv32 instead, moving the
rv64 conditional.

for  gcc/testsuite/ChangeLog

* gcc.target/riscv/mcpu-xiangshan-nanhu.c: Skip on non-rv64.

gcc/testsuite/gcc.target/riscv/mcpu-xiangshan-nanhu.c

index 2903c88d91c862aac8ce41bfad304cc909c1c414..c2a374f54fc8641aa35908c09e0415ac6f6ad5b4 100644 (file)
@@ -1,6 +1,6 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { rv64 } } } */
 /* { dg-skip-if "-march given" { *-*-* } { "-march=*" } } */
-/* { dg-options "-mcpu=xiangshan-nanhu" { target { rv64 } } } */
+/* { dg-options "-mcpu=xiangshan-nanhu" } */
 /* XiangShan Nanhu => rv64imafdc_zba_zbb_zbc_zbs_zbkb_zbkc_zbkx_zknd
                       _zkne_zknh_zksed_zksh_svinval_zicbom_zicboz */