From patchwork Wed Nov 25 12:32:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 548528 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 A82E11401E7 for ; Wed, 25 Nov 2015 23:33:05 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=wnrpP5SK; 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:from :to:subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=sKN eTVzK0XSDsdm5QCBBEsdnYV6t4lwU3ja6hdfFBCTJdlNhdQFAf/OttidLW8272/j EIK30/s1u8hx4D4LK3aqnisfc/RVUZ2xmTQA0LPTrUAg5fdVYxjmNy/wii1+/Asx y620TM6juwGvJS9sAfNfiQe7p7QXrGeQpjBl+B+A= 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:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=default; bh=rC9cClKSR cmgw6lQY2vdk/OwiDQ=; b=wnrpP5SKA7pPLjHks0fn1wD/mjslW6jYTjecIxnbY Leeg/SX4cXIOrLFbMMVclUDLGo1qjqG7U94Uk4PKsNuo+3N+MpMAWt1C8mHPjY5U TtOB/mpf1MiEFrWFO7U8xs+RIXm71X5/p9P7/KILmAZ9c8620z6KP3fFW+sHAIsN N8= Received: (qmail 15346 invoked by alias); 25 Nov 2015 12:32:58 -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 15334 invoked by uid 89); 25 Nov 2015 12:32:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 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; Wed, 25 Nov 2015 12:32:57 +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-6-LJvJud89Sr6jQf0CRO9yng-1; Wed, 25 Nov 2015 12:32:52 +0000 Received: from localhost ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 25 Nov 2015 12:32:52 +0000 From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: [PR68432 16/22] Use code,alternative attributes for nds32 References: <874mgajmo9.fsf@e105548-lin.cambridge.arm.com> Date: Wed, 25 Nov 2015 12:32:52 +0000 In-Reply-To: <874mgajmo9.fsf@e105548-lin.cambridge.arm.com> (Richard Sandiford's message of "Wed, 25 Nov 2015 12:20:06 +0000") Message-ID: <874mgagsy3.fsf@e105548-lin.cambridge.arm.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-MC-Unique: LJvJud89Sr6jQf0CRO9yng-1 Tested as described in the covering note. I plan to commit this as obvious if the prerequisites are approved. gcc/ * config/nds32/nds32.md (is_16bit): Turn into a code,alternative attribute. (enabled): Likewise. diff --git a/gcc/config/nds32/nds32.md b/gcc/config/nds32/nds32.md index 89c0391..dbe2a2d 100644 --- a/gcc/config/nds32/nds32.md +++ b/gcc/config/nds32/nds32.md @@ -57,7 +57,7 @@ ;; True if the instruction requires TARGET_16_BIT. -(define_attr "is_16bit" "no,yes" (const_string "no")) +(define_attr "is_16bit" "no,yes" (const_string "no") "code,alternative") ;; Length, in bytes, default is 4-bytes. @@ -76,7 +76,8 @@ (cond [(and (eq_attr "is_16bit" "yes") (match_test "!TARGET_16_BIT")) (const_int 0)] - (const_int 1))) + (const_int 1)) + "code,alternative") ;; ----------------------------------------------------------------------------