From b8b82bb05c10544da05cd0d3d39e6bc3763a8d9f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christoph=20M=C3=BCllner?= Date: Thu, 16 May 2024 09:53:47 +0200 Subject: [PATCH] RISC-V: testsuite: Drop march-string in cmpmemsi/cpymemsi tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- gcc/testsuite/gcc.target/riscv/cmpmemsi-1.c | 3 +-- gcc/testsuite/gcc.target/riscv/cpymemsi-1.c | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/cmpmemsi-1.c b/gcc/testsuite/gcc.target/riscv/cmpmemsi-1.c index d7e0bc474073..698f27d89fbf 100644 --- a/gcc/testsuite/gcc.target/riscv/cmpmemsi-1.c +++ b/gcc/testsuite/gcc.target/riscv/cmpmemsi-1.c @@ -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" diff --git a/gcc/testsuite/gcc.target/riscv/cpymemsi-1.c b/gcc/testsuite/gcc.target/riscv/cpymemsi-1.c index 983b564ccaf7..30e9f119bedc 100644 --- a/gcc/testsuite/gcc.target/riscv/cpymemsi-1.c +++ b/gcc/testsuite/gcc.target/riscv/cpymemsi-1.c @@ -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" -- 2.47.2