public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8459] RISC-V/testsuite: Also verify if-conversion runs 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:3e3b9b708d390074f7825401b808e0ed41552c1d

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

    RISC-V/testsuite: Also verify if-conversion runs for pr105314.c
    
    Verify that if-conversion succeeded through noce_try_store_flag_mask, as
    per PR rtl-optimization/105314, tightening the test case and making it
    explicit.
    
            gcc/testsuite/
            * gcc.target/riscv/pr105314.c: Scan the RTL "ce1" pass too.

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

diff --git a/gcc/testsuite/gcc.target/riscv/pr105314.c b/gcc/testsuite/gcc.target/riscv/pr105314.c
index 436b523d016e..1a7ea671791c 100644
--- a/gcc/testsuite/gcc.target/riscv/pr105314.c
+++ b/gcc/testsuite/gcc.target/riscv/pr105314.c
@@ -1,6 +1,7 @@
 /* PR rtl-optimization/105314 */
 /* { dg-do compile } */
 /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-Os" "-Oz" } } */
+/* { dg-options "-fdump-rtl-ce1" } */
 
 long
 foo (long a, long b, long c)
@@ -10,4 +11,5 @@ foo (long a, long b, long c)
   return a;
 }
 
+/* { dg-final { scan-rtl-dump-times "if-conversion succeeded through noce_try_store_flag_mask" 1 "ce1" } } */
 /* { 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-8459] RISC-V/testsuite: Also verify if-conversion runs 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).