From patchwork Fri Nov 3 16:18:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 117940 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3653647qgn; Fri, 3 Nov 2017 09:19:13 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QKznxEZli/SOrJSZNjJc0vSFEIvEVuMjJM9RHGU5L37IBryKhv4/9DVT4dIAsizoPkfn/3 X-Received: by 10.159.234.147 with SMTP id d19mr7238455plr.280.1509725953223; Fri, 03 Nov 2017 09:19:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509725953; cv=none; d=google.com; s=arc-20160816; b=k2IWOICWWPRV4bHCeoE+Q8HUe0P+e0V1xO8O4NZ3rxb0WU0UqD4C2EFSnSK8Nye9/M H0tS67Gk+IXPY6TUjzCKek9lOlBZonPHhXp1AWPhQuUewChNBdZiB04BlpYzE/O9BCfX u65LcSA5fs+U5Edwzqovo9OYeAdQKNyEAK06g1dBd1CvvL37TkqB3Xzm3OJ5E/YbN7Zz 1MCd2CE/BBhXrGqfKUQGuFV9xWmxM9y3W1iRGQLtCBz5MHQkf3jQ7J0rpMgmIipZg5ZH 7E5KXOypomwsv9ACDJP+/oXnHBQRLKCEyy9p9/s1edBp7JrfLtTum+p50PTzgTnXnYnz jRWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:mail-followup-to:to:from:delivered-to:sender:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=vhH4mqfpkpkcaLSt9whSO4SxYOWyDJBuXUnwblX8ksc=; b=juSYR4h5SzoSTtQCzytx1VmgmbunJ8AncsnJ8b4gDFRM4hYRMBlPZ4wdGBYVmNw/VG 0mt4iSwMt3zQg5el/loZDCalFoPEpTrdGqIkvuTdFyEK3jZwAhKMotJAPSI3dl5JBZhs 8Sre4X8uj6LjdkJR7tppr1okovAd0Gt5PiTpqvtTYxmssEf/U13vOoA5AGMLQP05LGQi ALB2yTVobU+oxIe0Bxw/O7nxIAoRSvg0eEvnTLkqZkSHjTP9dCsDMIh9v+ht1UKoE4GT QLEwT0QzugSLUFaK8LEhWUAzCqAcy0bwPeYIFJT/AP1B477sAC+9URkVBhwnUDRUbS8v OdlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=bcc7+UWd; spf=pass (google.com: domain of gcc-patches-return-465874-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-465874-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id e90si6742808pfb.291.2017.11.03.09.19.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Nov 2017 09:19:13 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-465874-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=bcc7+UWd; spf=pass (google.com: domain of gcc-patches-return-465874-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-465874-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=default; b=dlTz+2rC/tyH4Jkqqs6zGXbK2Mrwx DyEQVuDukSjbdBAxw7lQailBDZLdXJ0hmDuv8+60t9f/tMHKQTjrkOFJw2cZzMKo O0hrpa6VoPIUkoXYKeiE+//uQurN/4CfGVlGieBHpNBI7RzUe28mmAFmtgs2xfYp E0/7VmVqtwU070= 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:from :to:subject:references:date:in-reply-to:message-id:mime-version :content-type; s=default; bh=wXpQ03WHE6JafCGI7FnLQGkU2pw=; b=bcc 7+UWdBckssMLLjmxr05jqMeIxquz6HSPfIrbWF22aEk8CloXr1JNwMNk3ejw3O/m QglAsZWqqeAgyqgDhFSBYmemN8Q3D8h/FVVokuec3rmVgoeTdFQMRRKbjdbfyZvW 0+vTX4XqPy9IyxAXD8q1C9i4vDMc7femwEKMdBoU= Received: (qmail 35042 invoked by alias); 3 Nov 2017 16:18:58 -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 35030 invoked by uid 89); 3 Nov 2017 16:18:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=46, 5, dependence X-HELO: mail-wr0-f182.google.com Received: from mail-wr0-f182.google.com (HELO mail-wr0-f182.google.com) (209.85.128.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 03 Nov 2017 16:18:56 +0000 Received: by mail-wr0-f182.google.com with SMTP id l1so2979778wrc.3 for ; Fri, 03 Nov 2017 09:18:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:mail-followup-to:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=vhH4mqfpkpkcaLSt9whSO4SxYOWyDJBuXUnwblX8ksc=; b=jOcqs4BjSa41CrkfYofLIlfW42fbDptKezbFtK/1zVvk+4lPD0OJ4CAgI9lrD9RTWA CyrqinL9lJC9Ra1MMFiTqtyIC9zmvDNXj4twLoyVkdNLaI3a0wDPPMwCesIA3w7I/7h4 Ry/uBbnSF3h33bahBiC/SZVV3MfB3qCqxx7qmna1+sfS10B8FemZ0lZrLx0Z/uRc0OdS 2tBoTr/oi2/UFf/Nuhi+2DmVFow1424eoMMwrrALRu0+JCDtUm+HGCw0AtCYog+K/kSq jFMXR01042McPfx33BEgj/feh1gujJCb2IyD8qM30dYbZgzZ27B5wpz1nHQBRgi9cUyK +MtQ== X-Gm-Message-State: AMCzsaVYs5ztkMUVEX6ZScWlRvDjgBR8auICU91mvb5PNRadMxgIqvD4 nMm2uQLmx7eIdYFlqv6CWw+thJMgaEs= X-Received: by 10.223.132.101 with SMTP id 92mr6205048wrf.85.1509725934097; Fri, 03 Nov 2017 09:18:54 -0700 (PDT) Received: from localhost (188.29.164.162.threembb.co.uk. [188.29.164.162]) by smtp.gmail.com with ESMTPSA id u18sm8170892wrg.94.2017.11.03.09.18.53 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Nov 2017 09:18:53 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org Subject: [4/10] Don't assume vect_multiple_sizes means 2 sizes References: <87inerqqyz.fsf@linaro.org> Date: Fri, 03 Nov 2017 16:18:51 +0000 In-Reply-To: <87inerqqyz.fsf@linaro.org> (Richard Sandiford's message of "Fri, 03 Nov 2017 16:14:44 +0000") Message-ID: <87zi83pc7o.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Some tests assumed that there would only be 2 vector sizes if vect_multiple_sizes, whereas for SVE there are three (SVE, 128-bit and 64-bit). This patch replaces scan-tree-dump-times with scan-tree-dump for vect_multiple_sizes but keeps it for !vect_multiple_sizes. 2017-11-03 Richard Sandiford Alan Hayward David Sherwood gcc/testsuite/ * gcc.dg/vect/no-vfa-vect-101.c: Use scan-tree-dump rather than scan-tree-dump-times for vect_multiple_sizes. * gcc.dg/vect/no-vfa-vect-102.c: Likewise. * gcc.dg/vect/no-vfa-vect-102a.c: Likewise. * gcc.dg/vect/no-vfa-vect-37.c: Likewise. * gcc.dg/vect/no-vfa-vect-79.c: Likewise. * gcc.dg/vect/vect-104.c: Likewise. Index: gcc/testsuite/gcc.dg/vect/no-vfa-vect-101.c =================================================================== --- gcc/testsuite/gcc.dg/vect/no-vfa-vect-101.c 2015-06-02 23:53:38.000000000 +0100 +++ gcc/testsuite/gcc.dg/vect/no-vfa-vect-101.c 2017-11-03 16:06:16.141037152 +0000 @@ -46,5 +46,5 @@ int main (void) /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" } } */ /* { dg-final { scan-tree-dump-times "can't determine dependence" 1 "vect" { target { ! vect_multiple_sizes } } } } */ -/* { dg-final { scan-tree-dump-times "can't determine dependence" 2 "vect" { target vect_multiple_sizes } } } */ +/* { dg-final { scan-tree-dump "can't determine dependence" "vect" { target vect_multiple_sizes } } } */ Index: gcc/testsuite/gcc.dg/vect/no-vfa-vect-102.c =================================================================== --- gcc/testsuite/gcc.dg/vect/no-vfa-vect-102.c 2017-11-03 16:06:03.052282173 +0000 +++ gcc/testsuite/gcc.dg/vect/no-vfa-vect-102.c 2017-11-03 16:06:16.141037152 +0000 @@ -51,5 +51,5 @@ int main (void) /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" } } */ /* { dg-final { scan-tree-dump-times "possible dependence between data-refs" 1 "vect" { target { ! vect_multiple_sizes } } } } */ -/* { dg-final { scan-tree-dump-times "possible dependence between data-refs" 2 "vect" { target vect_multiple_sizes } } } */ +/* { dg-final { scan-tree-dump "possible dependence between data-refs" "vect" { target vect_multiple_sizes } } } */ Index: gcc/testsuite/gcc.dg/vect/no-vfa-vect-102a.c =================================================================== --- gcc/testsuite/gcc.dg/vect/no-vfa-vect-102a.c 2017-11-03 16:06:03.052282173 +0000 +++ gcc/testsuite/gcc.dg/vect/no-vfa-vect-102a.c 2017-11-03 16:06:16.141037152 +0000 @@ -51,5 +51,5 @@ int main (void) /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" } } */ /* { dg-final { scan-tree-dump-times "possible dependence between data-refs" 1 "vect" { target { ! vect_multiple_sizes } } } } */ -/* { dg-final { scan-tree-dump-times "possible dependence between data-refs" 2 "vect" { target vect_multiple_sizes } } } */ +/* { dg-final { scan-tree-dump "possible dependence between data-refs" "vect" { target vect_multiple_sizes } } } */ Index: gcc/testsuite/gcc.dg/vect/no-vfa-vect-37.c =================================================================== --- gcc/testsuite/gcc.dg/vect/no-vfa-vect-37.c 2015-06-02 23:53:38.000000000 +0100 +++ gcc/testsuite/gcc.dg/vect/no-vfa-vect-37.c 2017-11-03 16:06:16.141037152 +0000 @@ -59,4 +59,4 @@ int main (void) prevent vectorization on some targets. */ /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { xfail *-*-* } } } */ /* { dg-final { scan-tree-dump-times "can't determine dependence" 2 "vect" { target { ! vect_multiple_sizes } } } } */ -/* { dg-final { scan-tree-dump-times "can't determine dependence" 4 "vect" { target vect_multiple_sizes } } } */ +/* { dg-final { scan-tree-dump "can't determine dependence" "vect" { target vect_multiple_sizes } } } */ Index: gcc/testsuite/gcc.dg/vect/no-vfa-vect-79.c =================================================================== --- gcc/testsuite/gcc.dg/vect/no-vfa-vect-79.c 2015-06-02 23:53:35.000000000 +0100 +++ gcc/testsuite/gcc.dg/vect/no-vfa-vect-79.c 2017-11-03 16:06:16.141037152 +0000 @@ -47,4 +47,4 @@ int main (void) prevent vectorization on some targets. */ /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail *-*-* } } } */ /* { dg-final { scan-tree-dump-times "can't determine dependence" 1 "vect" { target { ! vect_multiple_sizes } } } } */ -/* { dg-final { scan-tree-dump-times "can't determine dependence" 2 "vect" { target vect_multiple_sizes } } } */ +/* { dg-final { scan-tree-dump "can't determine dependence" "vect" { target vect_multiple_sizes } } } */ Index: gcc/testsuite/gcc.dg/vect/vect-104.c =================================================================== --- gcc/testsuite/gcc.dg/vect/vect-104.c 2017-11-03 16:06:03.054282499 +0000 +++ gcc/testsuite/gcc.dg/vect/vect-104.c 2017-11-03 16:06:16.142036841 +0000 @@ -63,5 +63,5 @@ int main (void) /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" } } */ /* { dg-final { scan-tree-dump-times "possible dependence between data-refs" 1 "vect" { target { ! vect_multiple_sizes } } } } */ -/* { dg-final { scan-tree-dump-times "possible dependence between data-refs" 2 "vect" { target vect_multiple_sizes } } } */ +/* { dg-final { scan-tree-dump "possible dependence between data-refs" "vect" { target vect_multiple_sizes } } } */