From patchwork Tue Jan 23 11:32:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 125498 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1698871ljf; Tue, 23 Jan 2018 03:33:10 -0800 (PST) X-Google-Smtp-Source: AH8x224wyovmi4rXItBWCEI6xukRSQ3k6KfTCrsaVagrW6mKdPhn65msMZgOY3B+9XMCgQJARKBt X-Received: by 10.98.69.82 with SMTP id s79mr10175135pfa.214.1516707190121; Tue, 23 Jan 2018 03:33:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516707190; cv=none; d=google.com; s=arc-20160816; b=BbkBoyI5sn0JVmV6LAmjW/lDMlEEMFEsZ87B2GRlXDI8Q0m3ciKN976Z+3TvYE90Vl A7gqVlIBZvEXxyQJK84M1yjrByL2bZUpVRxUp9Jol1qMw5iGsBZVyJ25v+dnz5KOtQvi aAfMs61WhhRNmDdVaj3dgSaVs/5YPisxKZVUIETIVHEzCbe8qrg8MoEqC93u0cNtT9kt /5IgaIEFP2G8Stk0ahYsTIdylIGpdaNwv4iven6cs1pFBDxjrR5zktuR37iJG7/kI8QE YUhWWYUxliPvtHV1ygpyExNHBsTOp6H8dVhZZvOv3HFeeR3HhxaxcYXKNHZ1d+OBo29q JL2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:message-id:date: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=tzDMfYZ58q4SYd+/BrE370MYhJ+4V4ID007742xCeLQ=; b=ZemfeWPLHNKFC2XLS6S7R7eAyMHoeG6oHpHT9GMm1FG/nyvi7649B/qRremKS4GinG JtNL6W3hQ6MaRptu2fPsbGxSH17ogycIviaR+8BawoUFdGYI378BWa7zg5iIMsnwmiZT riBQlAyytoNkW660ug0ctafzR+f9ryrsLMCFQNTuttLDsUy97ki6Lw7UOYDKnA1pPRef OTZ7DONZCk2HuXfA7TzDZDksvh9EZ866n4Mmfa1HAFypy7AhR2sk5Il6rANN4jURyGMC QL1T6TGVR3cTMyyosQaeNh5eAJpU1pnaTFMQKS+OFvR15mSnQJsNmMmK4X90K9ue4k57 gyoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=ud1tNGGX; spf=pass (google.com: domain of gcc-patches-return-471868-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-471868-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 w123si1348681pfd.95.2018.01.23.03.33.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jan 2018 03:33:10 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-471868-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=ud1tNGGX; spf=pass (google.com: domain of gcc-patches-return-471868-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-471868-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:date:message-id:mime-version:content-type; q=dns; s= default; b=nYonsxwMZHHTLxQ+k4oxq6/yiaoRebhTb8uAQQRL0n54HT++lf4eo eRWnKDK6Iz/51+qEJXjNr/UIXVE7OaJaXCQ/43ySPDuEw3BQcnh2x1ANakC53LgJ 8/dmcEw93ktld2r78GQtlkmJdpuOZwz6JgiP7i2lRWkdCBztJ1x9mU= 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:date:message-id:mime-version:content-type; s= default; bh=iKO+ACh/LtjKScZYfCuKELnkREU=; b=ud1tNGGXqwzVJfO5ntbC jNkAD1POF+2siSkDRUX6Zr/p9s1D2E5f/wbsrYwEQ3vKxLjjemdZvA5JYV+2K9Rf q2eA6Et3QkGSQCeKMCv367shOsinU1GJzjZy80hmz4VjL50n7C/IXLe3pHUi5otz 3D1ISpaJcY1Q72WrphhLyUc= Received: (qmail 111694 invoked by alias); 23 Jan 2018 11:32:57 -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 111679 invoked by uid 89); 23 Jan 2018 11:32:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.2 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=vectexp, UD:vect.exp, vect.exp, HX-Received:10.223.172.14 X-HELO: mail-wr0-f178.google.com Received: from mail-wr0-f178.google.com (HELO mail-wr0-f178.google.com) (209.85.128.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 23 Jan 2018 11:32:55 +0000 Received: by mail-wr0-f178.google.com with SMTP id 16so159954wry.12 for ; Tue, 23 Jan 2018 03:32:54 -0800 (PST) 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:date:message-id :user-agent:mime-version; bh=tzDMfYZ58q4SYd+/BrE370MYhJ+4V4ID007742xCeLQ=; b=qv6qG3yBYNE/cyjmT0+0NqiloP2sllxz3bQaxuWpxgPWzxgPhn4KOUgx5iBGk9yf2E 7W2seeIm0OKs1ZRBntwpuiwKMdbqgSF7SaSkT1cus+b6SpBpfKSZlJRsPWAJg75qAjTM bfZf+yXBD8CPWVHwdRUSvBVYsKzdPZB3RiQ8eQpxDw0ROeIQ3TAapgiRIGsV1hwWhMPP 8OgLumjUZh9k5GW+3DfRZEXl4Kx+fqVvdwDSQjd3CuG6oHsckuLPFWQDqZF6Ij2wNdU5 84q4qgV0ewxz9U9nx56bwAWGD6nMulnHq1kU5f88UEZC8BwrxBNI0KDa2814LnlDVBSb JBaQ== X-Gm-Message-State: AKwxytfFXBYyzsxgMD07y6DLIF/Vfz/e3EOkAbCjE/2mI8fmX+5ahOv+ 0PcfcmMNFz5ncwJmkTnBb7EAGlSp5Y0= X-Received: by 10.223.172.14 with SMTP id v14mr2093629wrc.249.1516707172842; Tue, 23 Jan 2018 03:32:52 -0800 (PST) Received: from localhost ([95.144.14.233]) by smtp.gmail.com with ESMTPSA id t14sm5713538wmc.23.2018.01.23.03.32.51 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Jan 2018 03:32:51 -0800 (PST) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org Subject: Remove explicit dg-do runs from gcc.dg/vect (PR 83889) Date: Tue, 23 Jan 2018 11:32:51 +0000 Message-ID: <87fu6w4xp8.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 The failures in this PR were from forcing { dg-do run } even when vect.exp chooses options that are incompatible with the runtime. The default vect.exp behaviour is to execute when possible, so there's no need for a dg-do at all. The patch removes other unconditional { dg-do run }s too. Many of them were already failing in the same way. Also, the dg-do run condition in vect-reduc-or* seems unnecessary: the test should run correctly whatever happens, and the scan tests are already guarded properly. Tested on aarch64-linux-gnu, arm-non-eabi, x86_64-linux-gnu and powerpc64le-linux-gnu. OK to install? Richard 2018-01-23 Richard Sandiford gcc/testsuite/ PR testsuite/83889 * gcc.dg/vect/pr79920.c: Remove explicit dg-do run. * gcc.dg/vect/pr80631-1.c: Likewise. * gcc.dg/vect/pr80631-2.c: Likewise. * gcc.dg/vect/pr81410.c: Likewise. * gcc.dg/vect/pr81633.c: Likewise. * gcc.dg/vect/pr81815.c: Likewise. * gcc.dg/vect/pr82108.c: Likewise. * gcc.dg/vect/pr83857.c: Likewise. * gcc.dg/vect/vect-alias-check-8.c: Likewise. * gcc.dg/vect/vect-alias-check-9.c: Likewise. * gcc.dg/vect/vect-alias-check-10.c: Likewise. * gcc.dg/vect/vect-alias-check-11.c: Likewise. * gcc.dg/vect/vect-alias-check-12.c: Likewise. * gcc.dg/vect/vect-reduc-11.c: Likewise. * gcc.dg/vect/vect-tail-nomask-1.c: Likewise. * gcc.dg/vect/vect-reduc-in-order-1.c: Remove dg-do run and use dg-xfail-run-if instead. * gcc.dg/vect/vect-reduc-in-order-2.c: Likewise. * gcc.dg/vect/vect-reduc-in-order-3.c: Likewise. * gcc.dg/vect/vect-reduc-in-order-4.c: Likewise. * gcc.dg/vect/vect-reduc-or_1.c: Remove conditional dg-do run. * gcc.dg/vect/vect-reduc-or_2.c: Likewise. Index: gcc/testsuite/gcc.dg/vect/pr79920.c =================================================================== --- gcc/testsuite/gcc.dg/vect/pr79920.c 2018-01-15 12:38:45.039094423 +0000 +++ gcc/testsuite/gcc.dg/vect/pr79920.c 2018-01-23 11:29:38.977575495 +0000 @@ -1,4 +1,3 @@ -/* { dg-do run } */ /* { dg-additional-options "-O3 -fno-fast-math" } */ #include "tree-vect.h" Index: gcc/testsuite/gcc.dg/vect/pr80631-1.c =================================================================== --- gcc/testsuite/gcc.dg/vect/pr80631-1.c 2018-01-13 17:59:52.122334084 +0000 +++ gcc/testsuite/gcc.dg/vect/pr80631-1.c 2018-01-23 11:29:38.977575495 +0000 @@ -1,5 +1,4 @@ /* PR tree-optimization/80631 */ -/* { dg-do run } */ #include "tree-vect.h" Index: gcc/testsuite/gcc.dg/vect/pr80631-2.c =================================================================== --- gcc/testsuite/gcc.dg/vect/pr80631-2.c 2017-12-14 00:04:52.323446529 +0000 +++ gcc/testsuite/gcc.dg/vect/pr80631-2.c 2018-01-23 11:29:38.977575495 +0000 @@ -1,5 +1,4 @@ /* PR tree-optimization/80631 */ -/* { dg-do run } */ #include "tree-vect.h" Index: gcc/testsuite/gcc.dg/vect/pr81410.c =================================================================== --- gcc/testsuite/gcc.dg/vect/pr81410.c 2017-07-27 10:37:55.334036950 +0100 +++ gcc/testsuite/gcc.dg/vect/pr81410.c 2018-01-23 11:29:38.977575495 +0000 @@ -1,4 +1,3 @@ -/* { dg-do run } */ /* { dg-require-effective-target vect_long_long } */ #include "tree-vect.h" Index: gcc/testsuite/gcc.dg/vect/pr81633.c =================================================================== --- gcc/testsuite/gcc.dg/vect/pr81633.c 2017-08-03 10:40:54.014105333 +0100 +++ gcc/testsuite/gcc.dg/vect/pr81633.c 2018-01-23 11:29:38.977575495 +0000 @@ -1,5 +1,3 @@ -/* { dg-do run } */ - static double identity[4][4] = {{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 0}, Index: gcc/testsuite/gcc.dg/vect/pr81815.c =================================================================== --- gcc/testsuite/gcc.dg/vect/pr81815.c 2017-08-16 08:50:54.197549943 +0100 +++ gcc/testsuite/gcc.dg/vect/pr81815.c 2018-01-23 11:29:38.978575453 +0000 @@ -1,5 +1,3 @@ -/* { dg-do run } */ - int __attribute__ ((noinline, noclone)) f (int *x, int n) { Index: gcc/testsuite/gcc.dg/vect/pr82108.c =================================================================== --- gcc/testsuite/gcc.dg/vect/pr82108.c 2017-09-06 20:47:38.380589062 +0100 +++ gcc/testsuite/gcc.dg/vect/pr82108.c 2018-01-23 11:29:38.978575453 +0000 @@ -1,4 +1,3 @@ -/* { dg-do run } */ /* { dg-require-effective-target vect_float } */ #include "tree-vect.h" Index: gcc/testsuite/gcc.dg/vect/pr83857.c =================================================================== --- gcc/testsuite/gcc.dg/vect/pr83857.c 2018-01-16 15:13:24.937622282 +0000 +++ gcc/testsuite/gcc.dg/vect/pr83857.c 2018-01-23 11:29:38.978575453 +0000 @@ -1,4 +1,3 @@ -/* { dg-do run } */ /* { dg-additional-options "-ffast-math" } */ #define N 100 Index: gcc/testsuite/gcc.dg/vect/vect-alias-check-8.c =================================================================== --- gcc/testsuite/gcc.dg/vect/vect-alias-check-8.c 2018-01-13 18:02:00.945360390 +0000 +++ gcc/testsuite/gcc.dg/vect/vect-alias-check-8.c 2018-01-23 11:29:38.978575453 +0000 @@ -1,5 +1,3 @@ -/* { dg-do run } */ - #define N 200 #define DIST 32 Index: gcc/testsuite/gcc.dg/vect/vect-alias-check-9.c =================================================================== --- gcc/testsuite/gcc.dg/vect/vect-alias-check-9.c 2018-01-13 18:02:00.945360390 +0000 +++ gcc/testsuite/gcc.dg/vect/vect-alias-check-9.c 2018-01-23 11:29:38.978575453 +0000 @@ -1,5 +1,3 @@ -/* { dg-do run } */ - #define N 200 #define M 4 Index: gcc/testsuite/gcc.dg/vect/vect-alias-check-10.c =================================================================== --- gcc/testsuite/gcc.dg/vect/vect-alias-check-10.c 2018-01-13 18:02:00.944360429 +0000 +++ gcc/testsuite/gcc.dg/vect/vect-alias-check-10.c 2018-01-23 11:29:38.978575453 +0000 @@ -1,5 +1,3 @@ -/* { dg-do run } */ - #define N 87 #define M 6 Index: gcc/testsuite/gcc.dg/vect/vect-alias-check-11.c =================================================================== --- gcc/testsuite/gcc.dg/vect/vect-alias-check-11.c 2018-01-13 18:02:00.944360429 +0000 +++ gcc/testsuite/gcc.dg/vect/vect-alias-check-11.c 2018-01-23 11:29:38.978575453 +0000 @@ -1,5 +1,3 @@ -/* { dg-do run } */ - #define N 87 #define M 6 Index: gcc/testsuite/gcc.dg/vect/vect-alias-check-12.c =================================================================== --- gcc/testsuite/gcc.dg/vect/vect-alias-check-12.c 2018-01-13 18:02:00.945360390 +0000 +++ gcc/testsuite/gcc.dg/vect/vect-alias-check-12.c 2018-01-23 11:29:38.978575453 +0000 @@ -1,5 +1,3 @@ -/* { dg-do run } */ - #define N 87 #define M 7 Index: gcc/testsuite/gcc.dg/vect/vect-reduc-11.c =================================================================== --- gcc/testsuite/gcc.dg/vect/vect-reduc-11.c 2017-07-27 10:37:55.334036950 +0100 +++ gcc/testsuite/gcc.dg/vect/vect-reduc-11.c 2018-01-23 11:29:38.979575410 +0000 @@ -1,4 +1,3 @@ -/* { dg-do run } */ /* { dg-require-effective-target vect_int } */ #include "tree-vect.h" Index: gcc/testsuite/gcc.dg/vect/vect-tail-nomask-1.c =================================================================== --- gcc/testsuite/gcc.dg/vect/vect-tail-nomask-1.c 2018-01-16 09:27:09.046519360 +0000 +++ gcc/testsuite/gcc.dg/vect/vect-tail-nomask-1.c 2018-01-23 11:29:38.979575410 +0000 @@ -1,4 +1,3 @@ -/* { dg-do run } */ /* { dg-require-weak "" } */ /* { dg-skip-if "No undefined weak" { hppa*-*-hpux* && { ! lp64 } } } */ /* { dg-skip-if "No undefined weak" { nvptx-*-* } } */ Index: gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-1.c =================================================================== --- gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-1.c 2018-01-13 18:01:15.294116882 +0000 +++ gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-1.c 2018-01-23 11:29:38.979575410 +0000 @@ -1,4 +1,4 @@ -/* { dg-do run { xfail { { i?86-*-* x86_64-*-* } && ia32 } } } */ +/* { dg-xfail-run-if "" { { i?86-*-* x86_64-*-* } && ia32 } } */ /* { dg-require-effective-target vect_double } */ /* { dg-add-options ieee } */ /* { dg-additional-options "-fno-fast-math" } */ Index: gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-2.c =================================================================== --- gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-2.c 2018-01-13 18:01:15.294116882 +0000 +++ gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-2.c 2018-01-23 11:29:38.979575410 +0000 @@ -1,4 +1,4 @@ -/* { dg-do run { xfail { { i?86-*-* x86_64-*-* } && ia32 } } } */ +/* { dg-xfail-run-if "" { { i?86-*-* x86_64-*-* } && ia32 } } */ /* { dg-require-effective-target vect_double } */ /* { dg-add-options ieee } */ /* { dg-additional-options "-fno-fast-math" } */ Index: gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-3.c =================================================================== --- gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-3.c 2018-01-13 18:01:15.294116882 +0000 +++ gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-3.c 2018-01-23 11:29:38.979575410 +0000 @@ -1,4 +1,4 @@ -/* { dg-do run { xfail { { i?86-*-* x86_64-*-* } && ia32 } } } */ +/* { dg-xfail-run-if "" { { i?86-*-* x86_64-*-* } && ia32 } } */ /* { dg-require-effective-target vect_double } */ /* { dg-add-options ieee } */ /* { dg-additional-options "-fno-fast-math" } */ Index: gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-4.c =================================================================== --- gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-4.c 2018-01-13 18:01:15.294116882 +0000 +++ gcc/testsuite/gcc.dg/vect/vect-reduc-in-order-4.c 2018-01-23 11:29:38.979575410 +0000 @@ -1,4 +1,4 @@ -/* { dg-do run { xfail { { i?86-*-* x86_64-*-* } && ia32 } } } */ +/* { dg-xfail-run-if "" { { i?86-*-* x86_64-*-* } && ia32 } } */ /* { dg-require-effective-target vect_double } */ /* { dg-add-options ieee } */ /* { dg-additional-options "-fno-fast-math" } */ Index: gcc/testsuite/gcc.dg/vect/vect-reduc-or_1.c =================================================================== --- gcc/testsuite/gcc.dg/vect/vect-reduc-or_1.c 2018-01-13 17:58:35.049273040 +0000 +++ gcc/testsuite/gcc.dg/vect/vect-reduc-or_1.c 2018-01-23 11:29:38.979575410 +0000 @@ -1,5 +1,3 @@ -/* { dg-do run { target { whole_vector_shift || vect_logical_reduc } } } */ - /* Write a reduction loop to be reduced using vector shifts. */ #include "tree-vect.h" Index: gcc/testsuite/gcc.dg/vect/vect-reduc-or_2.c =================================================================== --- gcc/testsuite/gcc.dg/vect/vect-reduc-or_2.c 2018-01-13 17:58:35.049273040 +0000 +++ gcc/testsuite/gcc.dg/vect/vect-reduc-or_2.c 2018-01-23 11:29:38.979575410 +0000 @@ -1,5 +1,3 @@ -/* { dg-do run { target { whole_vector_shift || vect_logical_reduc } } } */ - /* Write a reduction loop to be reduced using vector shifts and folded. */ #include "tree-vect.h"