From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64700 invoked by alias); 6 Dec 2018 07:07:48 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 64683 invoked by uid 89); 6 Dec 2018 07:07:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=Hx-languages-length:3962 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Dec 2018 07:07:38 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C9B0E307CDD4; Thu, 6 Dec 2018 07:07:36 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-117-214.ams2.redhat.com [10.36.117.214]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 560BD5C6B4; Thu, 6 Dec 2018 07:07:36 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id wB677XYP014648; Thu, 6 Dec 2018 08:07:34 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id wB677U6g014647; Thu, 6 Dec 2018 08:07:30 +0100 Date: Thu, 06 Dec 2018 07:07:00 -0000 From: Jakub Jelinek To: Rainer Orth , Mike Stump Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix *ivdep* tests on SPARC etc. (PR testsuite/88369) Message-ID: <20181206070730.GO12380@tucnak> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00342.txt.bz2 Hi! On (at least some of these) tests and on some targets, GCC prints messages like: ./cc1 -quiet -O3 -fopt-info-vec-optimized -mvis vect-ivdep-1.c vect-ivdep-1.c:11:3: optimized: loop vectorized using 8 byte vectors vect-ivdep-1.c:11:3: optimized: loop versioned for vectorization to enhance alignment and the versioning for alignment message according to this PR makes those tests FAIL. We just want to make sure in these testcases we don't version for alias, so this patch just prunes the versioning for alignment diagnostics. Bootstrapped/regtested on x86_64-linux and i686-linux, does it work on SPARC and ok for trunk in that case? 2018-12-06 Jakub Jelinek PR testsuite/88369 * gcc.dg/vect/vect-ivdep-1.c: Prune versioning for alignment messages. * gcc.dg/vect/vect-ivdep-2.c: Likewise. * g++.dg/vect/pr33426-ivdep.cc: Likewise. * g++.dg/vect/pr33426-ivdep-2.cc: Likewise. * g++.dg/vect/pr33426-ivdep-3.cc: Likewise. * g++.dg/vect/pr33426-ivdep-4.cc: Likewise. --- gcc/testsuite/gcc.dg/vect/vect-ivdep-1.c.jj 2015-05-29 15:04:27.894882932 +0200 +++ gcc/testsuite/gcc.dg/vect/vect-ivdep-1.c 2018-12-05 17:37:54.032485003 +0100 @@ -15,3 +15,4 @@ void foo(int n, int *a, int *b, int *c, /* { dg-message "loop vectorized" "" { target *-*-* } 0 } */ /* { dg-bogus " version\[^\n\r]* alias" "" { target *-*-* } 0 } */ +/* { dg-prune-output " version\[^\n\r]* alignment" } */ --- gcc/testsuite/gcc.dg/vect/vect-ivdep-2.c.jj 2015-05-29 15:04:27.908882716 +0200 +++ gcc/testsuite/gcc.dg/vect/vect-ivdep-2.c 2018-12-05 17:38:00.528377814 +0100 @@ -31,3 +31,4 @@ void bar(int n, int *a, int *b, int *c) /* { dg-message "loop vectorized" "" { target *-*-* } 0 } */ /* { dg-bogus " version\[^\n\r]* alias" "" { target *-*-* } 0 } */ +/* { dg-prune-output " version\[^\n\r]* alignment" } */ --- gcc/testsuite/g++.dg/vect/pr33426-ivdep.cc.jj 2015-05-29 15:04:31.748823367 +0200 +++ gcc/testsuite/g++.dg/vect/pr33426-ivdep.cc 2018-12-05 17:35:08.818212056 +0100 @@ -15,3 +15,4 @@ void foo(int n, int *a, int *b, int *c, /* { dg-message "loop vectorized" "" { target *-*-* } 0 } */ /* { dg-bogus " version\[^\n\r]* alias" "" { target *-*-* } 0 } */ +/* { dg-prune-output " version\[^\n\r]* alignment" } */ --- gcc/testsuite/g++.dg/vect/pr33426-ivdep-2.cc.jj 2015-05-29 15:04:31.739823506 +0200 +++ gcc/testsuite/g++.dg/vect/pr33426-ivdep-2.cc 2018-12-05 17:35:28.772881921 +0100 @@ -30,6 +30,7 @@ void bar(int n, int *a, int *b, int *c) /* { dg-message "loop vectorized" "" { target *-*-* } 0 } */ /* { dg-bogus " version\[^\n\r]* alias" "" { target *-*-* } 0 } */ +/* { dg-prune-output " version\[^\n\r]* alignment" } */ /* { dg-final { scan-tree-dump-times "ANNOTATE_EXPR " 2 "original" } } */ /* { dg-final { scan-tree-dump-times "ANNOTATE " 2 "gimple" } } */ --- gcc/testsuite/g++.dg/vect/pr33426-ivdep-3.cc.jj 2015-05-29 15:04:31.747823383 +0200 +++ gcc/testsuite/g++.dg/vect/pr33426-ivdep-3.cc 2018-12-05 17:37:10.182208572 +0100 @@ -17,6 +17,7 @@ void foo(int *a) { /* { dg-message "loop vectorized" "" { target *-*-* } 0 } */ /* { dg-bogus " version\[^\n\r]* alias" "" { target *-*-* } 0 } */ +/* { dg-prune-output " version\[^\n\r]* alignment" } */ /* { dg-final { scan-tree-dump-times "ANNOTATE_EXPR " 1 "original" } } */ /* { dg-final { scan-tree-dump-times "ANNOTATE " 1 "gimple" } } */ --- gcc/testsuite/g++.dg/vect/pr33426-ivdep-4.cc.jj 2015-05-29 15:04:31.740823491 +0200 +++ gcc/testsuite/g++.dg/vect/pr33426-ivdep-4.cc 2018-12-05 17:37:43.715655239 +0100 @@ -22,6 +22,7 @@ void foo(std::vector *ar, int *b) { /* { dg-message "loop vectorized" "" { target *-*-* } 0 } */ /* FIXME: dg-bogus " version\[^\n\r]* alias" "" { target *-*-* } 0 */ +/* { dg-prune-output " version\[^\n\r]* alignment" } */ /* { dg-final { scan-tree-dump-times "ANNOTATE_EXPR " 1 "original" } } */ /* { dg-final { scan-tree-dump-times "ANNOTATE " 1 "gimple" } } */ Jakub