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: 516173 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 11262140281 for ; Thu, 10 Sep 2015 19:02:09 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=xR+EnCdl; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=dTfboyk9YVKnrPhG41VofgssNTLeNwy44gneErZ075V 0aqRFx75ike0s3Vsle80OHPotFdB6STuWpJo7YalFR7KuALGln3zfWxEzk9NITKv k+EP/5OveBIZ09gpqInhLXhEIH48lOfvMQSFyKYl9Yofw5fDkh6KNNqp5mPFe39w = 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 :message-id:date:from:mime-version:to:cc:subject:content-type; s=default; bh=D30JQSv7/B4DERP+bSPSJXDpRTo=; b=xR+EnCdl0zv1K3lVm E2MrJjqG67egwJtNWPIo2f62ARX5fpATL2wg+tJ1j6Vqv+2HKF8MZVlGkHRdmF0i jwtGL442pxLHOfaEcpAN6MJziRqd9mncJk1yMf0+HNRkVuxr04fMJC8vTv68kywh LjRBaLXslRZEzAjVPjD3K2c4k8= Received: (qmail 66083 invoked by alias); 10 Sep 2015 09:02:00 -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 66071 invoked by uid 89); 10 Sep 2015 09:02:00 -0000 Authentication-Results: sourceware.org; auth=none 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 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"