From patchwork Sat Jul 4 13:55:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 491224 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 B360314076B for ; Sat, 4 Jul 2015 23:55:44 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=JJf7pa7D; 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:subject:mime-version:content-type:from:in-reply-to :date:cc:references:to; q=dns; s=default; b=G1jBMjqiL1EhyIkknpo1 JpLseF0iOZ0d1p65iKNjotSexdV5pWMJHBpK7Gd0MABsaOlvkya4R0hFcj+itGeO K02j19TTAT44k4hTX7fipzFqxosCukQi98ivGAKKSKCwKKgkcfynpEVVFfcozXr5 RCf9U0mRLXc3PuUjvz2TJDM= 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:subject:mime-version:content-type:from:in-reply-to :date:cc:references:to; s=default; bh=NPkCFWn8wP/hVO66h/IuuRBVVj U=; b=JJf7pa7DytkvUEyOtm8Pp24Msa2sfqaOrvY5IUptajtYW2/1LKGL0oCnGr vFVJOe0vVFZeZWIZndJyJjdTwsxmvq4F/8yGLQtEOK5nNQ7c0p9+ny/hOrREmy7p 0t4pcO8ooBs7TDzu2WYbqkaVG8/AHLOvSOL95B+ZLrcXRe//o= Received: (qmail 52406 invoked by alias); 4 Jul 2015 13:55:36 -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 52395 invoked by uid 89); 4 Jul 2015 13:55:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 X-HELO: BLU004-OMC3S20.hotmail.com Received: from blu004-omc3s20.hotmail.com (HELO BLU004-OMC3S20.hotmail.com) (65.55.116.95) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA256 encrypted) ESMTPS; Sat, 04 Jul 2015 13:55:34 +0000 Received: from BLU436-SMTP206 ([65.55.116.74]) by BLU004-OMC3S20.hotmail.com with Microsoft SMTPSVC(7.5.7601.23008); Sat, 4 Jul 2015 06:55:32 -0700 X-TMN: [skeFUYEwBTMUEw8isYKmkBn1wVBMbyWL] Message-ID: Subject: [committed] Remove condition from PA indirect_jump MIME-Version: 1.0 (Apple Message framework v1085) From: John David Anglin In-Reply-To: <20150701092835.GA11111@tsaunders-iceball.corp.tor1.mozilla.com> Date: Sat, 4 Jul 2015 09:55:29 -0400 CC: Jeff Law , Richard Sandiford References: <87egks2a0k.fsf@googlemail.com> <20150701092835.GA11111@tsaunders-iceball.corp.tor1.mozilla.com> To: Trevor Saunders , GCC Patches The attached change removes the C condition from the PA indirect jump since it depended on operands[] and this isn't generally allowed in named patterns. Tested on hppa-unknown-linux-gnu and hppa2.0w-hp-hpux11.11. Committed to trunk and active branches. Dave --- John David Anglin dave.anglin@bell.net 2015-07-04 John David Anglin PR target/66114 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead of register_operand. Remove constraint. Index: config/pa/pa.md =================================================================== --- config/pa/pa.md (revision 225280) +++ config/pa/pa.md (working copy) @@ -6844,8 +6844,8 @@ ;;; Hope this is only within a function... (define_insn "indirect_jump" - [(set (pc) (match_operand 0 "register_operand" "r"))] - "GET_MODE (operands[0]) == word_mode" + [(set (pc) (match_operand 0 "pmode_register_operand" "r"))] + "" "bv%* %%r0(%0)" [(set_attr "type" "branch") (set_attr "length" "4")])