From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2664 invoked by alias); 10 Dec 2018 12:00:58 -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 2405 invoked by uid 89); 10 Dec 2018 12:00:39 -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 autolearn=ham version=3.3.2 spammy=H*MI:sk:2018120, Bootstrapped, HTo:D*comcast.net 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; Mon, 10 Dec 2018 12:00:36 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7A2543097031; Mon, 10 Dec 2018 12:00:26 +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 EB3F9608E6; Mon, 10 Dec 2018 12:00:25 +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 wBAC0NnE014932; Mon, 10 Dec 2018 13:00:23 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id wBAC0Jaa014931; Mon, 10 Dec 2018 13:00:19 +0100 Date: Mon, 10 Dec 2018 12:00: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, take 2) Message-ID: <20181210120019.GY12380@tucnak> Reply-To: Jakub Jelinek References: <20181206070730.GO12380@tucnak> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181206070730.GO12380@tucnak> User-Agent: Mutt/1.9.2 (2017-12-15) X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00565.txt.bz2 On Thu, Dec 06, 2018 at 08:07:30AM +0100, Jakub Jelinek wrote: > 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? As mentioned in the PR, another testcase was missed, this patch modifies that one too. Ok for trunk? 2018-12-10 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. * gcc.dg/vect/nodump-vect-opt-info-1.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/gcc.dg/vect/nodump-vect-opt-info-1.c.jj 2018-09-29 18:03:11.562727541 +0200 +++ gcc/testsuite/gcc.dg/vect/nodump-vect-opt-info-1.c 2018-12-10 12:57:56.714484728 +0100 @@ -6,6 +6,7 @@ vadd (int *dst, int *op1, int *op2, int { /* { dg-optimized "loop vectorized" "" { target *-*-* } .+2 } */ /* { dg-optimized "loop versioned for vectorization because of possible aliasing" "" { target *-*-* } .+1 } */ +/* { dg-prune-output " version\[^\n\r]* alignment" } */ for (int i = 0; i < count; ++i) dst[i] = op1[i] + op2[i]; } --- 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