public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8266] Fix testcase failure on many platforms which don't support vect_int_max.
@ 2024-01-19  2:46 hongtao Liu
  0 siblings, 0 replies; only message in thread
From: hongtao Liu @ 2024-01-19  2:46 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1c51d0109a4730827c40c3bbd3a59d459828017e

commit r14-8266-g1c51d0109a4730827c40c3bbd3a59d459828017e
Author: liuhongt <hongtao.liu@intel.com>
Date:   Fri Jan 19 09:22:39 2024 +0800

    Fix testcase failure on many platforms which don't support vect_int_max.
    
    After r14-7124-g6686e16fda4190, the testcase can be optimized to
    MAX_EXPR if the backends support that. So I adjust the testcase to
    scan for MAX_EXPR, but it failed many platforms which don't support
    that.
    As pinski mentioned, target vect_no_int_min_max is only available
    under vect directory, so for simplicity, I adjust the testcase to scan
    either MAX_EXPR or original VEC_COND_EXPR.
    
    gcc/testsuite/ChangeLog:
    
            PR testsuite/113437
            * gcc.dg/tree-ssa/pr95906.c: Scan either MAX_EXPR or
            VEC_COND_EXPR.

Diff:
---
 gcc/testsuite/gcc.dg/tree-ssa/pr95906.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr95906.c b/gcc/testsuite/gcc.dg/tree-ssa/pr95906.c
index d15670f3e9e..ce43983f341 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr95906.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr95906.c
@@ -9,4 +9,4 @@ v16i8 f(v16i8 a, v16i8 b)
 }
 
 /* { dg-final { scan-tree-dump-not "bit_(and|ior)_expr" "forwprop3" } } */
-/* { dg-final { scan-tree-dump-times "max_expr" 1 "forwprop3" } } */
+/* { dg-final { scan-tree-dump-times {(?n)(?:max_expr|vec_cond_expr)} 1 "forwprop3" } } */

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

only message in thread, other threads:[~2024-01-19  2:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-19  2:46 [gcc r14-8266] Fix testcase failure on many platforms which don't support vect_int_max hongtao Liu

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