]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix testcase after bump isa spec version
authorKito Cheng <kito.cheng@sifive.com>
Mon, 24 Jan 2022 09:40:45 +0000 (17:40 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 24 Jan 2022 09:46:01 +0000 (17:46 +0800)
Extension version might be different among different ISA spec version,
add explicitly isa-spec version to prevent that might fail when build
GCC with different default ISA version.

gcc/testsuite/ChangeLog

* gcc.target/riscv/attribute-19.c: Add -misa-spec=2.2

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

index 18f68d985612f5fd64fe75e75325d36ee42ccbf4..562f80893615bd734b2742c5a72d3555b8ae8275 100644 (file)
@@ -1,4 +1,4 @@
 /* { dg-do compile } */
-/* { dg-options "-mriscv-attribute -march=rv64imp0p9 -mabi=lp64" } */
+/* { dg-options "-mriscv-attribute -march=rv64imp0p9 -mabi=lp64 -misa-spec=2.2" } */
 int foo() {}
 /* { dg-final { scan-assembler ".attribute arch, \"rv64i2p0_m2p0_p0p9\"" } } */