public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6927] scan generic vector tests before lowering
@ 2023-03-29  8:48 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2023-03-29  8:48 UTC (permalink / raw)
  To: gcc-cvs

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

commit r13-6927-gad32fcb8e91ba85cb4676c6249b6adc4b0daf9df
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Mar 29 10:45:14 2023 +0200

    scan generic vector tests before lowering
    
    The g++.dg/pr94920.C testcase looks for a specific number of
    ABS_EXPRs but the vector example is prone to vector lowering so
    the following instead of scanning the optimized dump scans the
    forwprop1 dump which is before vector lowering and the point the
    transforms should have happened.
    
            * g++.dg/pr94920.C: Scan forwprop1 instead of optimized.

Diff:
---
 gcc/testsuite/g++.dg/pr94920.C | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/g++.dg/pr94920.C b/gcc/testsuite/g++.dg/pr94920.C
index 126b00478d2..65ece36f8cc 100644
--- a/gcc/testsuite/g++.dg/pr94920.C
+++ b/gcc/testsuite/g++.dg/pr94920.C
@@ -1,6 +1,6 @@
 /* PR tree-optimization/94920 */
 /* { dg-do compile } */
-/* { dg-options "-O2 -Wno-psabi -fdump-tree-optimized" } */
+/* { dg-options "-O2 -Wno-psabi -fdump-tree-forwprop1" } */
 
 typedef int __attribute__((vector_size(4*sizeof(int)))) vint;
 
@@ -60,4 +60,4 @@ __attribute__((noipa)) int qux(int x) {
     return (x >= 0 ? x : 0) + (x >= 0 ? x : 0);
 }
 
-/* { dg-final {scan-tree-dump-times " ABS_EXPR " 6 "optimized" } } */
+/* { dg-final {scan-tree-dump-times " ABS_EXPR " 6 "forwprop1" } } */

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

only message in thread, other threads:[~2023-03-29  8:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-29  8:48 [gcc r13-6927] scan generic vector tests before lowering Richard Biener

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).