From patchwork Thu Jan 4 14:40:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 123430 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp11510019qgn; Thu, 4 Jan 2018 06:41:08 -0800 (PST) X-Google-Smtp-Source: ACJfBotSnlrMlwumfA5OvQNRdSth8qw4dECThZLOGji41FLGdjNSE1VcEBzMtEetUgPbUZ/UihDU X-Received: by 10.84.252.140 with SMTP id y12mr4903215pll.13.1515076868344; Thu, 04 Jan 2018 06:41:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515076868; cv=none; d=google.com; s=arc-20160816; b=KqsrBKpHXknh4sdhdFYOAVglljllrtJ2Gi73JvorZWWxMAswla44/VbDDp92S1bS9i V8c/P/pQDvKEe3yY8RbQTdnZMJBG/mQGzCvdLvcHbjMkKpbrhz/ZOiQl0dlGXYt0ha7K 7WXBYFbQdN+i7Nv0FsDSMX5zo6c1uRI7voqxNswgsvcpjdyPLDzQ2g8qqbnazSMslitY Ibp/ECQ7gml8dfo2s4uwi1enwjMzxo7fXfXwEFmwvQ3vM1Y8q5JDG040Hc+M6NlFVGM9 y4WRQa6KwsH/Y2kHG7tPwLXWMPy2z5efFRqxTBT16EZUJFUDEHbwqiWMWsJbGJXAZ3La PZvg== 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=wt8uQzlZ7iZT6UCi9bO/G8gPL2okGDkdJwvNo9Sq3RI=; b=rdHuD6P4TUwMtv9h9EkZ0w/pEeBIBAc7rZqJO/4RWlJrWKA4On3QJld1c84bkMiE8v yLrXVfMzmI6hZz8tTrEGCUeyP9HSRDpAckTO1fetI1Nak70HwlQJo0eZ/B8g03QweItH Y+qwU736uFtce6yu7mthysMmz3YCdmkUzv6yZ+YZkOoP99vfqfEp94txO7WfuYZ7COqm h9TEAgeFM/dsBA1PdoBEFNX1Y7k1Duq5gNrASR19GqQOdu26IVqDpyVDzQX0bgUyu4Yr z6dj6St8ahfWqwtoeyckwk8En1WoeCaaz9zP6t+Jv7UxuiXrus2pjd/IAfmv+6GC9CCa aOgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=mx4XYrQD; spf=pass (google.com: domain of gcc-patches-return-470144-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-470144-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 n3si2380268pls.513.2018.01.04.06.41.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jan 2018 06:41:08 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-470144-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=mx4XYrQD; spf=pass (google.com: domain of gcc-patches-return-470144-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-470144-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=xeUaewkfOt4L0uT9iVuNTkK8kxX4+yKwHilKN2pzZgvdRwlExe3m/ Oa4HftXTkoUY9dZfcHvMkTL4LTTJGU4J1Ws90/MlKkyfk+5btTvPMd1BVU3UyqtG yAeTz7RbJacCglY3uHS7kISriQ5fQPhidYbiVyX640pylE0ceSByC8= 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=K7mZgluT7YnKu80MBooanasyzo4=; b=mx4XYrQD49vFqrgnzA05 iNY4FIu7CpCYUhYxjQCS7WSb90k82n1ZyXtTWFInauPazUFx5CsiYXPQgF9OoRG9 x3diD52WjvkRviwh7/Eg9k6t7PrtuOP79xKa8SsUsdeGBbKzOtveusiKJUNU4vaa t4AHuSJVWrXmvnN06T0oRrM= Received: (qmail 128481 invoked by alias); 4 Jan 2018 14:40:56 -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 128471 invoked by uid 89); 4 Jan 2018 14:40:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.7 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= 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; Thu, 04 Jan 2018 14:40:54 +0000 Received: by mail-wr0-f178.google.com with SMTP id p17so1673618wre.7 for ; Thu, 04 Jan 2018 06:40: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=wt8uQzlZ7iZT6UCi9bO/G8gPL2okGDkdJwvNo9Sq3RI=; b=By4iFmBzNT/pmLRTEu5HZvekqvwddzv9DrQZp/hb5ADvwFpVThtux18haMuJRpRec2 Wu6clgMu2b5AjX4oInQoxcoMYtbuN5BGSDqNm9W4FtPwxc2e3wgBRSowEtLiEyAA5428 vavmW1nxbd7HFFnd25afMBgDw+mhLhb6CkZ9J5AGZd6Zpom+OZ3EOcgm/9P+L8PlOKjr fpmgbym7+yAhMY36FXJvtXoPQJU6UH9AIlUnUu/1tCUBt6iPxK7fd8qJwhSXU9fIRs6R WM5KcZL7wjqkrqhohH5JReqiZTqOmK1SbzPtaHBj3MgaANcjqcoRuX93VMhYGhcLSQ79 5f/g== X-Gm-Message-State: AKGB3mJotvEItVUN2jLBmvR1L5oA0nG8eRZ31y97FsaiQVDbQGC5XTrg PoWTjHAy+5Q4rEHC1RPQzO628qK2Erg= X-Received: by 10.223.187.73 with SMTP id x9mr4698683wrg.256.1515076852564; Thu, 04 Jan 2018 06:40:52 -0800 (PST) Received: from localhost (92.40.248.165.threembb.co.uk. [92.40.248.165]) by smtp.gmail.com with ESMTPSA id 2sm1246819wrg.13.2018.01.04.06.40.51 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Jan 2018 06:40: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: [committed] PR83680: Inverted test in arm_vectorize_vec_perm_const Date: Thu, 04 Jan 2018 14:40:49 +0000 Message-ID: <87efn5lma6.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 This patch fixes an inverted condition in r256093. I checked for other instances of the same thing and there didn't seem to be any. Tested on arm-linux-gnueabihf and applied as obvious. Richard 2018-01-04 Richard Sandiford gcc/ PR target/83680 * config/arm/arm.c (arm_vectorize_vec_perm_const): Fix inverted test for d.testing. Index: gcc/config/arm/arm.c =================================================================== --- gcc/config/arm/arm.c 2018-01-03 11:12:55.080788513 +0000 +++ gcc/config/arm/arm.c 2018-01-04 14:33:34.424536295 +0000 @@ -29440,7 +29440,7 @@ arm_vectorize_vec_perm_const (machine_mo d.perm.new_vector (sel.encoding (), d.one_vector_p ? 1 : 2, nelt); - if (d.testing_p) + if (!d.testing_p) return arm_expand_vec_perm_const_1 (&d); d.target = gen_raw_REG (d.vmode, LAST_VIRTUAL_REGISTER + 1);