]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix riscv/arch-19.c with different ISA spec version
authorKito Cheng <kito.cheng@sifive.com>
Thu, 20 Apr 2023 13:15:37 +0000 (21:15 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Thu, 20 Apr 2023 13:21:14 +0000 (21:21 +0800)
In newer ISA spec, F will implied zicsr, add that into -march option to
prevent different test result on different default -misa-spec version.

gcc/testsuite/

* gcc.target/riscv/arch-19.c: Add -misa-spec.

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

index b042e1a49fe6f6150fd5f167d1b3b05b61c44b8e..95204ede26a692fbff7b62ccb442867192de0c53 100644 (file)
@@ -1,4 +1,4 @@
 /* { dg-do compile } */
-/* { dg-options "-march=rv64if_zfinx -mabi=lp64" } */
+/* { dg-options "-march=rv64if_zicsr_zfinx -mabi=lp64" } */
 int foo() {}
-/* { dg-error "'-march=rv64if_zfinx': z\\*inx conflicts with floating-point extensions" "" { target *-*-* } 0 } */
+/* { dg-error "'-march=rv64if_zicsr_zfinx': z\\*inx conflicts with floating-point extensions" "" { target *-*-* } 0 } */