]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: testsuite: Drop march-string in cmpmemsi/cpymemsi tests
authorChristoph Müllner <christoph.muellner@vrull.eu>
Thu, 16 May 2024 07:53:47 +0000 (09:53 +0200)
committerChristoph Müllner <christoph.muellner@vrull.eu>
Thu, 16 May 2024 09:11:12 +0000 (11:11 +0200)
The tests cmpmemsi-1.c and cpymemsi-1.c are execution ("dg-do run")
tests, which does not have any restrictions for the enabled extensions.
Further, no other listed options are required.
Let's drop the options, so that the test can also be executed on
non-f and non-d targets.  However, we need to set options to the
defaults without '-ansi', because the included test file uses the
'asm' keyword, which is not part of ANSI C.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/cmpmemsi-1.c: Drop options.
* gcc.target/riscv/cpymemsi-1.c: Likewise.

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
gcc/testsuite/gcc.target/riscv/cmpmemsi-1.c
gcc/testsuite/gcc.target/riscv/cpymemsi-1.c

index d7e0bc47407367b88b34fa22f25c8c5265a9389c..698f27d89fbfa433169703f7bf7b91a98526c1ab 100644 (file)
@@ -1,6 +1,5 @@
 /* { dg-do run } */
-/* { dg-options "-march=rv32gc_zbb -save-temps -g0 -fno-lto" { target { rv32 } } } */
-/* { dg-options "-march=rv64gc_zbb -save-temps -g0 -fno-lto" { target { rv64 } } } */
+/* { dg-options "-pedantic-errors" } */
 /* { dg-timeout-factor 2 } */
 
 #include "../../gcc.dg/memcmp-1.c"
index 983b564ccaf72d14dad2125a32193b465b692d5f..30e9f119bedc7b5a9829670bc7d9a46b49ed00b0 100644 (file)
@@ -1,7 +1,5 @@
 /* { dg-do run } */
-/* { dg-options "-march=rv32gc -save-temps -g0 -fno-lto" { target { rv32 } } } */
-/* { dg-options "-march=rv64gc -save-temps -g0 -fno-lto" { target { rv64 } } } */
-/* { dg-additional-options "-DRUN_FRACTION=11" { target simulator } } */
+/* { dg-options "-pedantic-errors" } */
 /* { dg-timeout-factor 2 } */
 
 #include "../../gcc.dg/memcmp-1.c"