public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8458] RISC-V/testsuite: Widen coverage for pr105314.c
@ 2024-01-26 21:48 Maciej W. Rozycki
  0 siblings, 0 replies; only message in thread
From: Maciej W. Rozycki @ 2024-01-26 21:48 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a0596173c8975073dba8288598a483bfa97605ee

commit r14-8458-ga0596173c8975073dba8288598a483bfa97605ee
Author: Maciej W. Rozycki <macro@embecosm.com>
Date:   Fri Jan 26 21:47:40 2024 +0000

    RISC-V/testsuite: Widen coverage for pr105314.c
    
    The optimization levels pr105314.c is iterated over are needlessly
    overridden with "-O2", limiting the coverage of the test case to that
    level, perhaps with additional options the original optimization level
    has been supplied with.  We could prevent the extra iterations other
    than "-O2" from being run, but the transformation made by if-conversion
    is also expected to happen at other optimization levels, so include them
    all, and also make sure no reverse-condition branch appears in output,
    moving the `dg-final' command to the bottom, as with most test cases.
    
            gcc/testsuite/
            * gcc.target/riscv/pr105314.c: Replace `dg-options' command with
            `dg-skip-if'.  Also reject "bne" with `dg-final'.

Diff:
---
 gcc/testsuite/gcc.target/riscv/pr105314.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.target/riscv/pr105314.c b/gcc/testsuite/gcc.target/riscv/pr105314.c
index 6b6a60788f5a..436b523d016e 100644
--- a/gcc/testsuite/gcc.target/riscv/pr105314.c
+++ b/gcc/testsuite/gcc.target/riscv/pr105314.c
@@ -1,7 +1,6 @@
 /* PR rtl-optimization/105314 */
 /* { dg-do compile } */
-/* { dg-options "-O2" } */
-/* { dg-final { scan-assembler-not "\tbeq\t" } } */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-Os" "-Oz" } } */
 
 long
 foo (long a, long b, long c)
@@ -10,3 +9,5 @@ foo (long a, long b, long c)
     a = 0;
   return a;
 }
+
+/* { dg-final { scan-assembler-not "\\s(?:beq|bne)\\s" } } */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-26 21:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-26 21:48 [gcc r14-8458] RISC-V/testsuite: Widen coverage for pr105314.c Maciej W. Rozycki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).