From patchwork Tue May 8 09:03:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 135137 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp4135396lji; Tue, 8 May 2018 02:03:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqTI7a62vu+EMIL0Q/a+Yf4RiLHBCTOvNx9swtipIGqHN0Oo8OTB0kQB9QOboPaoJeZrRD1 X-Received: by 2002:a63:6887:: with SMTP id d129-v6mr32751563pgc.128.1525770200751; Tue, 08 May 2018 02:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525770200; cv=none; d=google.com; s=arc-20160816; b=zJP4Y7+/odL0PUoD8DlRhraLoWukTUym29W/s6JXy7uMYgF4nsixUY29zleqeabAkB LKLfNwqxO90K/eCu0WVgRHzudfm2iFwqeT2HDIPk2+Kq9wdbsbFll0RykS7Z8NKwomFV JwHmshws1YXKuIpd/ApVQNjQFQBxP4q2ei1cKOVlNxWAwEQ8eU9jM/9p0PQ4vIbnYFlz rdhmBvd6/RreJvKxWU146puMlYBPmTnBZqrypUwnwQV4iw7VyATS7qj33CINODqPDO2d 9+Aj4qUZ1O8scEHpDbJu3gyRbR39/IxbdsqOI9zlL0+euzvkmhAQNQ2fnzWg/sWwnEaB x3jw== 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=kvwfCivrot9DqALCN+bJfJBP46HZLjkYCf2PmwCYAWg=; b=whA6ty5eXk2wi43XvE0a06UTPDjDhuTLZXOD+3Y1+N/nqWMnqUDd2ecnaR4VpBJ6rU l0G2krQ4hFRd/FErPoZDLMm3AeJo0jOOeGwa6Yblp0zb8DmGQkJzmCyt3EHLAAmn7N53 ifS6WhHUcBzRYIPt4cSXDx5o8PMlXwklMIxrSIa+HrMvoJu2fwNfJo6oOwLv1JFdpEXf Cq7VoBAsOA5SfD5kyv1lUl4EVcM691BKFwlkL0OrczXw+LnJT+l1kuLnb/ig+qiDMHEa PGzX1hUqoTUY0vPC/O7X4ZC5+e9BfLuLAOttz4MFdxMp5vZxEOzkY/F3ZpR6coAS0lVE 37tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=BqUJJauG; spf=pass (google.com: domain of gcc-patches-return-477333-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-477333-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 f91-v6si11364131plb.510.2018.05.08.02.03.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 02:03:20 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-477333-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=BqUJJauG; spf=pass (google.com: domain of gcc-patches-return-477333-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-477333-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=pKJkuSHgOjq8q984XeX694oGLipYFb0kPrZ+EASdyEyBqfg2qWiL/ E4ey1XV9cmj892c+D5ELOcZkSpry8dJifcfyrj/nzSpPI4vNsQdf1EcjHKoKF6QO 7N4q+sG/uaI+XS9Gpe6qnFtNeBkaG/mldu+FMNNbSDJpAgs/ujf/DU= 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=+xYRk8dhbJUkLc2yXYbYHG5xHLk=; b=BqUJJauG9eKRiNbjqCND zf7u39UBGBwgzoBFda7/33Dugv1PHk5R1rqWh3uL0xrVEdXUEOW8ArJnpbdj0sl0 RycGfFOUnqzxo/coyibuOelyGNfUw9klJqD65EDSTov2APZoJUajI33joFCs8PfU IuiELLPE6O/izOOpHI5uTzw= Received: (qmail 32526 invoked by alias); 8 May 2018 09:03:09 -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 32508 invoked by uid 89); 8 May 2018 09:03:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1253, HX-Received:sk:a3-v6mr, vectorisation, H*r:sk:h5-v6so X-HELO: mail-wr0-f179.google.com Received: from mail-wr0-f179.google.com (HELO mail-wr0-f179.google.com) (209.85.128.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 08 May 2018 09:03:07 +0000 Received: by mail-wr0-f179.google.com with SMTP id h5-v6so7530640wrm.4 for ; Tue, 08 May 2018 02:03:07 -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:date:message-id :user-agent:mime-version; bh=kvwfCivrot9DqALCN+bJfJBP46HZLjkYCf2PmwCYAWg=; b=OpS0PxdGYkFeizczp+SBcrLFOnULKb2AXErzQZC20GtR3t6zZBtf2b9qLgvetuPwPH pnmCSO2AVN+4nCe3yFtMFSLFPca6NCnJgaoho3OpbEmsrTSkq9OdNAcFwFXqmDmu41XR p6fhj3KBz/nlTUnx+6IX9rP3dEspSydQxsgBHPU0oHHlqcV3//44vTJvIpO1XyZDDSwZ BqszBiklnjW0GaOFb+fyG8/l5MUxQBvNqMYzouIgvUgaG7BzB8aVlva6RxtPPgEgX/c7 QceiWbeIVopXo9q2H5wfp8YuZoTGNluS0CELxFr/cZPlcrpZBAhtMv2jRFBCZEJJkZV0 HEVg== X-Gm-Message-State: ALQs6tBe6tXUYjzVsZq5Vx3+lhxg3qYVaLATO1n7hUHEVwOxhOYjfpun dqEEHGtDuV/4EFmXql3Km7gkxxoklWg= X-Received: by 2002:adf:dd03:: with SMTP id a3-v6mr35485608wrm.0.1525770185258; Tue, 08 May 2018 02:03:05 -0700 (PDT) Received: from localhost (116.58.7.51.dyn.plus.net. [51.7.58.116]) by smtp.gmail.com with ESMTPSA id k3-v6sm42850050wri.28.2018.05.08.02.03.04 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 May 2018 02:03:04 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org Subject: Tighten condition in vect/pr85586.c (PR 85654) Date: Tue, 08 May 2018 10:03:03 +0100 Message-ID: <87o9hqsens.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Another gcc.dg/vect test, another chance to play whack-a-mole with the target selectors. In this case I think we want { ! vect_no_align }. { { ! vect_no_align } || vect_hw_misalign } might work too, but (a) there are other tests that use vect_no_align on its own and (b) the point of the scan test was simply to sanity- check that we didn't stop vectorising, rather than to test a new vectorisation feature. Tested on aaarch64-linux-gnu, x86_64-linux-gnu and armeb-none-elf. OK for trunk and GCC 8? Thanks, Richard 2018-05-08 Richard Sandiford gcc/testsuite/ PR testsuite/85586 * gcc.dg/vect/pr85586.c: Restrict LOOP VECTORIZED test to !vect_no_align. Index: gcc/testsuite/gcc.dg/vect/pr85586.c =================================================================== --- gcc/testsuite/gcc.dg/vect/pr85586.c 2018-05-02 08:39:59.942069849 +0100 +++ gcc/testsuite/gcc.dg/vect/pr85586.c 2018-05-08 09:47:33.207979464 +0100 @@ -40,4 +40,4 @@ main (void) return 0; } -/* { dg-final { scan-tree-dump-times "LOOP VECTORIZED" 1 "vect" { target vect_int } } } */ +/* { dg-final { scan-tree-dump-times "LOOP VECTORIZED" 1 "vect" { target { { ! vect_no_align } && vect_int } } } } */