From patchwork Thu Sep 10 09:01:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrylo Tkachov X-Patchwork-Id: 53372 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id 4516722B26 for ; Thu, 10 Sep 2015 09:02:19 +0000 (UTC) Received: by lanb10 with SMTP id b10sf12167744lan.3 for ; Thu, 10 Sep 2015 02:02:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mailing-list:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:sender :delivered-to:message-id:date:from:user-agent:mime-version:to:cc :subject:content-type:x-original-sender :x-original-authentication-results; bh=21f7bxab2SMYiO5SbRZuJkJ6FYPSgdOvsYVmVI/s8RI=; b=Elm+dbZUi+QYsLdjxs8+Nb9mWqylGzCelyb2VlKwEDWs7D6vK1p3/bvaxOGAhozJ+f rPemGlUjJinYDqECARgsRiP4gcB1qYbkUFbAa0Zw6zCxXw1QNWTMlIkoIBa7eR8GRlwc qqQq4qp0a+5WqLYTEsYyRmOOu4mRL8w5uSiV+pdvs4wTQ8FJt5VwTSkyGOoppqeUd4F5 W8mFNJWS6MhKZOeFMI1EqXMsjUzw2geX/pYPwz+CqnK84wl5a00JBLq9tQUdorM/50Us eM7iYbeBc/Fm5afZfKeE/1ttOd8oUIjvzgjdbx4NCXdEWdsmRlmu9Ce+7NZBievTO+qe IgWg== X-Gm-Message-State: ALoCoQn4OawAy6izifP9Sl7kYyJ9ibqwhTT8Oh9gZWF/nlRBJxMLT6OhRj7nNr4wmfzzzFVI8sIx X-Received: by 10.194.115.135 with SMTP id jo7mr9409174wjb.7.1441875738232; Thu, 10 Sep 2015 02:02:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.4.9 with SMTP id ca9ls175707lad.20.gmail; Thu, 10 Sep 2015 02:02:18 -0700 (PDT) X-Received: by 10.152.21.196 with SMTP id x4mr34338695lae.117.1441875738050; Thu, 10 Sep 2015 02:02:18 -0700 (PDT) Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com. [2a00:1450:4010:c04::22d]) by mx.google.com with ESMTPS id xk8si1177517lac.43.2015.09.10.02.02.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2015 02:02:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::22d as permitted sender) client-ip=2a00:1450:4010:c04::22d; Received: by lbpo4 with SMTP id o4so19449414lbp.2 for ; Thu, 10 Sep 2015 02:02:17 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr33723402lbc.41.1441875737771; Thu, 10 Sep 2015 02:02:17 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp824385lbq; Thu, 10 Sep 2015 02:02:16 -0700 (PDT) X-Received: by 10.107.161.144 with SMTP id k138mr63363947ioe.47.1441875736321; Thu, 10 Sep 2015 02:02:16 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id gk5si18027689pbc.7.2015.09.10.02.02.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2015 02:02:16 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-407027-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 66083 invoked by alias); 10 Sep 2015 09:02:00 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 66071 invoked by uid 89); 10 Sep 2015 09:02:00 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (207.82.80.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 10 Sep 2015 09:01:59 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-24-sEYpq8aSRd2rIivqN4Pgjg-1; Thu, 10 Sep 2015 10:01:53 +0100 Received: from [10.2.207.50] ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 10 Sep 2015 10:01:53 +0100 Message-ID: <55F14700.5070200@arm.com> Date: Thu, 10 Sep 2015 10:01:52 +0100 From: Kyrill Tkachov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: GCC Patches CC: Marcus Shawcroft , Richard Earnshaw , James Greenhalgh Subject: [PATCH][AArch64] Use logics_imm type for 2nd alternative of *and3nr_compare0 X-MC-Unique: sEYpq8aSRd2rIivqN4Pgjg-1 X-IsSubscribed: yes X-Original-Sender: kyrylo.tkachov@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c04::22d as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@gcc.gnu.org X-Google-Group-Id: 836684582541 Hi all, The TST with immediate instruction should have the logics_imm scheduling type. This patch fixes that in the *and3nr_compare0 pattern. Nothing much else to say on this. Tested on aarch64. Ok for trunk? Thanks, Kyrill 2015-09-10 Kyrylo Tkachov * config/aarch64/aarch64.md (*and3nr_compare0): Use logics_imm type for second alternative. commit f6a28f02b51eabec192dc1a73837662c7c2dd9fe Author: Kyrylo Tkachov Date: Wed Sep 2 17:08:24 2015 +0100 [AArch64] Use logics_imm type for 2nd alternative of *and3nr_compare0 diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md index b6d7e72..64e84d9 100644 --- a/gcc/config/aarch64/aarch64.md +++ b/gcc/config/aarch64/aarch64.md @@ -3590,7 +3590,7 @@ (define_insn "*and3nr_compare0" (const_int 0)))] "" "tst\\t%0, %1" - [(set_attr "type" "logics_reg")] + [(set_attr "type" "logics_reg,logics_imm")] ) (define_insn "*and_3nr_compare0"