From patchwork Sun Aug 23 08:49:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 509799 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id EE89F1402AA for ; Sun, 23 Aug 2015 18:50:29 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=bLxz0YNo; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type; q=dns; s=default; b=CnrtCDisHkhI3XyG/ bShaZHHYds3KXFLC5TOWmV85ktd/dyZMHnfE8xATzADdoyMBixDrOokp7FCOteyF C/bvRp7BafLhNS+/glmY5lcaFnYcxlv4FVr8skUovlfbBo9QH4gfzeEwWKR5pKsc 1dCgxUyRBLDLO0B2n651tKA3Ls= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type; s=default; bh=EuFVr0bI7MGlszmZ/8S1aQf RY9k=; b=bLxz0YNooDI40NRz1JALCGkr1e8UM4zA7zO4bZVFrAg4jQMJGwfFFgS 1uXSxvo4Jctn8jnKinza03GLkecL28mFCo2B18CFufpZTwexvMfEPu6ibJNkF83h 8FCLxY7ZIWE6PZNsjfbWmMfkVqbBKQ8p1C3iBiv/vdDODu9GQZmA= Received: (qmail 38086 invoked by alias); 23 Aug 2015 08:50:22 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 38069 invoked by uid 89); 23 Aug 2015 08:50:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: fencepost.gnu.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (208.118.235.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 23 Aug 2015 08:50:17 +0000 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49502) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ZTQyl-00076l-7r for gcc-patches@gnu.org; Sun, 23 Aug 2015 04:50:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTQyh-0005t2-JY for gcc-patches@gnu.org; Sun, 23 Aug 2015 04:50:14 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:64152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTQyh-0005pV-7j for gcc-patches@gnu.org; Sun, 23 Aug 2015 04:50:11 -0400 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1ZTQyb-0001if-5t from Tom_deVries@mentor.com ; Sun, 23 Aug 2015 01:50:05 -0700 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.3.224.2; Sun, 23 Aug 2015 09:49:59 +0100 Message-ID: <55D98935.807@mentor.com> Date: Sun, 23 Aug 2015 10:49:57 +0200 From: Tom de Vries User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Richard Biener , Rainer Orth CC: "gcc-patches@gnu.org" Subject: [committed] Rename vect_no_int_max to vect_no_int_min_max References: <55CAE044.9040006@mentor.com> <55CAE8FA.1020504@mentor.com> <55CB0E85.3020403@mentor.com> In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 192.94.38.131 [ was: Re: [RFC] Add check_effective_target_vect_min_max ] On 12-08-15 12:06, Richard Biener wrote: > On Wed, 12 Aug 2015, Rainer Orth wrote: > >> Tom de Vries writes: >> >>> On 12/08/15 10:51, Rainer Orth wrote: >>>> Tom de Vries writes: >>>> >>>>> This follow-up patch introduces a new effective target vect_min_max, >>>>> similar to how effective target vect_bswap is implemented. >>>>> >>>>> Any comments? >>>>> >>>>> Thanks, >>>>> - Tom >>>>> >>>>> Add check_effective_target_vect_min_max >>>>> >>>>> 2015-08-12 Tom de Vries >>>>> >>>>> * lib/target-supports.exp (check_effective_target_vect_min_max): New >>>>> proc. >>>>> * gcc.dg/vect/trapv-vect-reduc-4.c: Use vect_min_max effective target. >>>> >>>> Looks good to me, but the new effective-target keyword needs documenting >>>> in sourcebuild.texi. >>>> >>> >>> Hmm, in sourcebuild.texi I found: >>> ... >>> @item vect_no_int_max >>> Target does not support a vector max instruction on @code{int}. >>> ... >>> >>> That looks related. [ I also found a patch introducing vect_no_uint_max >>> here: https://gcc.gnu.org/ml/gcc-patches/2010-01/msg00152.html. ] >>> >>> I'm not sure where to take it from here. Should I introduce >>> vect_no_int_min, and use that in combination with vect_no_int_max? >> >> I'd say this is something for the vectorizer maintainers to decide. Richi? > > I expect the above is already effectively > vect_no_int_min as well (which target would support min but not max...?). > > So after double-checking that you could rename it to vect_no_int_min_max. > I found test-case vect-double-reduc-3.c, which uses vect_no_int_max for both min and max. Committed patch to trunk. Thanks, - Tom Rename vect_no_int_max to vect_no_int_min_max 2015-08-23 Tom de Vries * gcc.dg/vect/trapv-vect-reduc-4.c: Use vect_no_int_min_max. * gcc.dg/vect/costmodel/i386/costmodel-vect-reduc-1char.c: Rename vect_no_int_max to vect_no_int_min_max. * gcc.dg/vect/costmodel/ppc/costmodel-vect-reduc-1char.c: Same. * gcc.dg/vect/costmodel/x86_64/costmodel-vect-reduc-1char.c: Same. * gcc.dg/vect/no-scevccp-noreassoc-slp-reduc-7.c: Same. * gcc.dg/vect/slp-reduc-4.c: Same. * gcc.dg/vect/slp-reduc-5.c: Same. * gcc.dg/vect/vect-125.c: Same. * gcc.dg/vect/vect-13.c: Same. * gcc.dg/vect/vect-double-reduc-3.c: Same. * gcc.dg/vect/vect-reduc-1.c: Same. * gcc.dg/vect/vect-reduc-1char-big-array.c: Same. * gcc.dg/vect/vect-reduc-1char.c:Same. * gcc.dg/vect/vect-reduc-1short.c: Same. * gcc.dg/vect/vect-reduc-2.c: Same. * gcc.dg/vect/wrapv-vect-reduc-2char.c: Same. * gcc.dg/vect/wrapv-vect-reduc-2short.c: Same. * lib/target-supports.exp: Same. * doc/sourcebuild.texi: Rename vect_no_int_max with vect_no_int_min_max. Update description. --- gcc/doc/sourcebuild.texi | 4 ++-- .../vect/costmodel/i386/costmodel-vect-reduc-1char.c | 2 +- .../vect/costmodel/ppc/costmodel-vect-reduc-1char.c | 2 +- .../vect/costmodel/x86_64/costmodel-vect-reduc-1char.c | 2 +- .../gcc.dg/vect/no-scevccp-noreassoc-slp-reduc-7.c | 4 ++-- gcc/testsuite/gcc.dg/vect/slp-reduc-4.c | 4 ++-- gcc/testsuite/gcc.dg/vect/slp-reduc-5.c | 4 ++-- gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c | 2 +- gcc/testsuite/gcc.dg/vect/vect-125.c | 2 +- gcc/testsuite/gcc.dg/vect/vect-13.c | 2 +- gcc/testsuite/gcc.dg/vect/vect-double-reduc-3.c | 2 +- gcc/testsuite/gcc.dg/vect/vect-reduc-1.c | 2 +- gcc/testsuite/gcc.dg/vect/vect-reduc-1char-big-array.c | 2 +- gcc/testsuite/gcc.dg/vect/vect-reduc-1char.c | 2 +- gcc/testsuite/gcc.dg/vect/vect-reduc-1short.c | 2 +- gcc/testsuite/gcc.dg/vect/vect-reduc-2.c | 2 +- gcc/testsuite/gcc.dg/vect/wrapv-vect-reduc-2char.c | 2 +- gcc/testsuite/gcc.dg/vect/wrapv-vect-reduc-2short.c | 2 +- gcc/testsuite/lib/target-supports.exp | 16 ++++++++-------- 19 files changed, 30 insertions(+), 30 deletions(-) diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index d339d1e..7aa9c9d 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -1366,8 +1366,8 @@ Target supports a vector misalign access. @item vect_no_align Target does not support a vector alignment mechanism. -@item vect_no_int_max -Target does not support a vector max instruction on @code{int}. +@item vect_no_int_min_max +Target does not support a vector min and max instruction on @code{int}. @item vect_no_int_add Target does not support a vector add instruction on @code{int}. diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/i386/costmodel-vect-reduc-1char.c b/gcc/testsuite/gcc.dg/vect/costmodel/i386/costmodel-vect-reduc-1char.c index 29bb6c7..ff955af 100644 --- a/gcc/testsuite/gcc.dg/vect/costmodel/i386/costmodel-vect-reduc-1char.c +++ b/gcc/testsuite/gcc.dg/vect/costmodel/i386/costmodel-vect-reduc-1char.c @@ -47,5 +47,5 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_max } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_min_max } } } */ /* { dg-final { scan-tree-dump-times "vectorization not profitable" 0 "vect" } } */ diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-reduc-1char.c b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-reduc-1char.c index 318346a..82b614b 100644 --- a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-reduc-1char.c +++ b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-reduc-1char.c @@ -46,5 +46,5 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_max } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_min_max } } } */ /* { dg-final { scan-tree-dump-times "vectorization not profitable" 0 "vect" } } */ diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-vect-reduc-1char.c b/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-vect-reduc-1char.c index 29bb6c7..ff955af 100644 --- a/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-vect-reduc-1char.c +++ b/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-vect-reduc-1char.c @@ -47,5 +47,5 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_max } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_min_max } } } */ /* { dg-final { scan-tree-dump-times "vectorization not profitable" 0 "vect" } } */ diff --git a/gcc/testsuite/gcc.dg/vect/no-scevccp-noreassoc-slp-reduc-7.c b/gcc/testsuite/gcc.dg/vect/no-scevccp-noreassoc-slp-reduc-7.c index bbaf964..1d67450 100644 --- a/gcc/testsuite/gcc.dg/vect/no-scevccp-noreassoc-slp-reduc-7.c +++ b/gcc/testsuite/gcc.dg/vect/no-scevccp-noreassoc-slp-reduc-7.c @@ -36,6 +36,6 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_max } } } */ -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_max } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_min_max } } } */ +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_min_max } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/slp-reduc-4.c b/gcc/testsuite/gcc.dg/vect/slp-reduc-4.c index 3572dfc..c41d322 100644 --- a/gcc/testsuite/gcc.dg/vect/slp-reduc-4.c +++ b/gcc/testsuite/gcc.dg/vect/slp-reduc-4.c @@ -56,6 +56,6 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_max } } } */ -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_max } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_min_max } } } */ +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_min_max } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/slp-reduc-5.c b/gcc/testsuite/gcc.dg/vect/slp-reduc-5.c index b1590d8..fc689e4 100644 --- a/gcc/testsuite/gcc.dg/vect/slp-reduc-5.c +++ b/gcc/testsuite/gcc.dg/vect/slp-reduc-5.c @@ -42,6 +42,6 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { xfail vect_no_int_max } } } */ -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_max } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { xfail vect_no_int_min_max } } } */ +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_min_max } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c b/gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c index 8fd353c..f801e76 100644 --- a/gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c +++ b/gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c @@ -47,4 +47,4 @@ int main (void) } /* { dg-final { scan-tree-dump-times "Detected reduction\\." 2 "vect" } } */ -/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { target { ! { sparc*-*-* } } } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { target { ! vect_no_int_min_max } } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-125.c b/gcc/testsuite/gcc.dg/vect/vect-125.c index 0b3623e..4a3c0dc 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-125.c +++ b/gcc/testsuite/gcc.dg/vect/vect-125.c @@ -16,4 +16,4 @@ void train(short *t, short *w, int n, int err) } } -/* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { xfail vect_no_int_max } } } */ +/* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { xfail vect_no_int_min_max } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-13.c b/gcc/testsuite/gcc.dg/vect/vect-13.c index 752fea8..5d90292 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-13.c +++ b/gcc/testsuite/gcc.dg/vect/vect-13.c @@ -38,5 +38,5 @@ int main (void) return main1 (); } -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_max } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_min_max } } } */ /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-double-reduc-3.c b/gcc/testsuite/gcc.dg/vect/vect-double-reduc-3.c index f2becfa..3bdf9ef 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-double-reduc-3.c +++ b/gcc/testsuite/gcc.dg/vect/vect-double-reduc-3.c @@ -61,5 +61,5 @@ int main () return 0; } -/* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" { xfail vect_no_int_max } } } */ +/* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" { xfail vect_no_int_min_max } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-reduc-1.c b/gcc/testsuite/gcc.dg/vect/vect-reduc-1.c index 99abe06..aafa9a2 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-reduc-1.c +++ b/gcc/testsuite/gcc.dg/vect/vect-reduc-1.c @@ -52,4 +52,4 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail { vect_no_int_add || vect_no_int_max } } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail { vect_no_int_add || vect_no_int_min_max } } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-reduc-1char-big-array.c b/gcc/testsuite/gcc.dg/vect/vect-reduc-1char-big-array.c index a25b6cb..660e0fd 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-reduc-1char-big-array.c +++ b/gcc/testsuite/gcc.dg/vect/vect-reduc-1char-big-array.c @@ -67,4 +67,4 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_max } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_min_max } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-reduc-1char.c b/gcc/testsuite/gcc.dg/vect/vect-reduc-1char.c index 644b474..d5c6221 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-reduc-1char.c +++ b/gcc/testsuite/gcc.dg/vect/vect-reduc-1char.c @@ -47,4 +47,4 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_max } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_min_max } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-reduc-1short.c b/gcc/testsuite/gcc.dg/vect/vect-reduc-1short.c index 32eb324..8bbc68c 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-reduc-1short.c +++ b/gcc/testsuite/gcc.dg/vect/vect-reduc-1short.c @@ -47,4 +47,4 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_max } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_min_max } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-reduc-2.c b/gcc/testsuite/gcc.dg/vect/vect-reduc-2.c index 44f0fc7..656e571 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-reduc-2.c +++ b/gcc/testsuite/gcc.dg/vect/vect-reduc-2.c @@ -49,4 +49,4 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail { vect_no_int_add || vect_no_int_max } } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail { vect_no_int_add || vect_no_int_min_max } } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/wrapv-vect-reduc-2char.c b/gcc/testsuite/gcc.dg/vect/wrapv-vect-reduc-2char.c index 6b3cd09..556c2a0 100644 --- a/gcc/testsuite/gcc.dg/vect/wrapv-vect-reduc-2char.c +++ b/gcc/testsuite/gcc.dg/vect/wrapv-vect-reduc-2char.c @@ -47,4 +47,4 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_max } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_min_max } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/wrapv-vect-reduc-2short.c b/gcc/testsuite/gcc.dg/vect/wrapv-vect-reduc-2short.c index 0a4df48..f914217 100644 --- a/gcc/testsuite/gcc.dg/vect/wrapv-vect-reduc-2short.c +++ b/gcc/testsuite/gcc.dg/vect/wrapv-vect-reduc-2short.c @@ -46,4 +46,4 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_max } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_int_min_max } } } */ diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 91fd35b..b270722 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -3719,23 +3719,23 @@ proc check_effective_target_vect_long_long { } { # # This won't change for different subtargets so cache the result. -proc check_effective_target_vect_no_int_max { } { - global et_vect_no_int_max_saved +proc check_effective_target_vect_no_int_min_max { } { + global et_vect_no_int_min_max_saved - if [info exists et_vect_no_int_max_saved] { - verbose "check_effective_target_vect_no_int_max: using cached result" 2 + if [info exists et_vect_no_int_min_max_saved] { + verbose "check_effective_target_vect_no_int_min_max: using cached result" 2 } else { - set et_vect_no_int_max_saved 0 + set et_vect_no_int_min_max_saved 0 if { [istarget sparc*-*-*] || [istarget spu-*-*] || [istarget alpha*-*-*] || ([istarget mips*-*-*] && [check_effective_target_mips_loongson]) } { - set et_vect_no_int_max_saved 1 + set et_vect_no_int_min_max_saved 1 } } - verbose "check_effective_target_vect_no_int_max: returning $et_vect_no_int_max_saved" 2 - return $et_vect_no_int_max_saved + verbose "check_effective_target_vect_no_int_min_max: returning $et_vect_no_int_min_max_saved" 2 + return $et_vect_no_int_min_max_saved } # Return 1 if the target plus current options does not support a vector -- 1.9.1