From patchwork Mon Nov 19 17:51:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrylo Tkachov X-Patchwork-Id: 200054 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]) by ozlabs.org (Postfix) with SMTP id CFEDE2C0087 for ; Tue, 20 Nov 2012 04:51:36 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1353952298; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=7O88fBCGJNW/8oce3n7K bXqKj+8=; b=e3gaqGi6Ef/E66AhWT852niE5nGf7R+4/oQg48/5O3o9KrPkbEUg vXNvJ6kz78G7pOWwpL0sGgjRXi0pAr+q+B2dR7AbfPB2XrBT8qIXzgGojZLGH5TH 64kjRVSHPwgoDp8EKKrHsLdoJrYqwYycT5zo/EqVXDwmphfl0d1XApk= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:From:To:Cc:Subject:Date:Message-ID:MIME-Version:X-MC-Unique:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=GG4Ge3wq9ibQWq8kK2+nksNYQjg2/HqcgYPLZNwXfQdcBDaUxaW1b3werrVRJJ jFerzaBDNOJvEBfQomsJhKk8ouCZrAhajJj6hKvdPicTHND+YJtuBoGwb1xzqrgB q6uqe0I3jVP4jBUUegZIttiQNdCWDZ2Nf/fMSDgRumxE0=; Received: (qmail 22685 invoked by alias); 19 Nov 2012 17:51:23 -0000 Received: (qmail 22537 invoked by uid 22791); 19 Nov 2012 17:51:19 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, MSGID_MULTIPLE_AT, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Nov 2012 17:51:14 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Mon, 19 Nov 2012 17:51:12 +0000 Received: from e106372vm ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.0); Mon, 19 Nov 2012 17:51:12 +0000 From: "Kyrylo Tkachov" To: Cc: "Richard Earnshaw" , "Ramana Radhakrishnan" Subject: [PATCH][ARM] Define predicable attribute for arm_abssi2 and arm_neg_abssi2 Date: Mon, 19 Nov 2012 17:51:04 -0000 Message-ID: <00ab01cdc67e$72294a60$567bdf20$@tkachov@arm.com> MIME-Version: 1.0 X-MC-Unique: 112111917511213801 X-IsSubscribed: yes 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 Hi all, This patch updates the arm_abssi2 and arm_neg_abssi2 patterns in the ARM machine description. We define the predicable attribute based on the alternative. When the patterns were introduced it was not possible to do that. Now the second alternative in each of the patterns that supports predication is defined as predicable. No regressions on arm-none-eabi with qemu. Ok for trunk? Thanks, Kyrill gcc/ChangeLog 2012-11-19 Kyrylo Tkachov * config/arm/arm.md (*arm_abssi2): Define predicable attribute. (*arm_neg_abssi2): Define predicable attribute. --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -4263,7 +4263,7 @@ (define_insn "*arm_abssi2" eor%?\\t%0, %1, %1, asr #31\;sub%?\\t%0, %0, %1, asr #31" [(set_attr "conds" "clob,*") (set_attr "shift" "1") - ;; predicable can't be set based on the variant, so left as no + (set_attr "predicable" "no, yes") (set_attr "length" "8")] ) @@ -4291,7 +4291,7 @@ (define_insn "*arm_neg_abssi2" eor%?\\t%0, %1, %1, asr #31\;rsb%?\\t%0, %0, %1, asr #31" [(set_attr "conds" "clob,*") (set_attr "shift" "1") - ;; predicable can't be set based on the variant, so left as no + (set_attr "predicable" "no, yes") (set_attr "length" "8")] )