]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V/testsuite: Also verify if-conversion runs for pr105314.c
authorMaciej W. Rozycki <macro@embecosm.com>
Fri, 26 Jan 2024 21:47:40 +0000 (21:47 +0000)
committerMaciej W. Rozycki <macro@embecosm.com>
Fri, 26 Jan 2024 21:47:40 +0000 (21:47 +0000)
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.

gcc/testsuite/gcc.target/riscv/pr105314.c

index 436b523d016ea9136077aa6bc262aebdd8ce9dd6..1a7ea671791c4eb8612649cf1cf7724303cfe4e0 100644 (file)
@@ -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" } } */