]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Make arch-24.c to test "success" case
authorTsukasa OI <research_trasio@irq.a4lg.com>
Tue, 29 Aug 2023 02:41:44 +0000 (02:41 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Wed, 30 Aug 2023 03:54:30 +0000 (03:54 +0000)
arch-24.c and arch-25.c are exactly the same and redundant.  The author
suspects that the original author intended to test two base ISAs (RV32I and
RV64I) so this commit changes arch-24.c to test that RV32I+Zcf does not
cause any errors.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/arch-24.c: Test RV32I+Zcf instead.

gcc/testsuite/gcc.target/riscv/arch-24.c

index 3be4ade65a77f6b39aa9da611a280631b22e09fc..af15c3234b5ea92b919e992782ddb26b7e2eca1e 100644 (file)
@@ -1,5 +1,3 @@
 /* { dg-do compile } */
-/* { dg-options "-march=rv64i_zcf -mabi=lp64" } */
+/* { dg-options "-march=rv32i_zcf -mabi=ilp32" } */
 int foo() {}
-/* { dg-error "'-march=rv64i_zcf': zcf extension supports in rv32 only" "" { target *-*-* } 0 } */
-/* { dg-error "'-march=rv64i_zca_zcf': zcf extension supports in rv32 only" "" { target *-*-* } 0 } */