From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14634 invoked by alias); 1 Jul 2019 18:26:34 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 14626 invoked by uid 89); 1 Jul 2019 18:26:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.8 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3 autolearn=ham version=3.3.1 spammy= X-HELO: gcc1-power7.osuosl.org Received: from gcc1-power7.osuosl.org (HELO gcc1-power7.osuosl.org) (140.211.15.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 01 Jul 2019 18:26:33 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 7A15A1240673; Mon, 1 Jul 2019 18:26:32 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 06/12] @eh_set_lr_ Date: Mon, 01 Jul 2019 18:26:00 -0000 Message-Id: <26194ad5e9d7b2811e1fa81c726d82cb7791297b.1561994239.git.segher@kernel.crashing.org> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00080.txt.bz2 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (eh_set_lr_): Make this a parameterized name. (eh_return): Use that name. Simplify. --- gcc/config/rs6000/rs6000.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 381f140..881efe1 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -13184,15 +13184,12 @@ (define_expand "eh_return" [(use (match_operand 0 "general_operand"))] "" { - if (TARGET_32BIT) - emit_insn (gen_eh_set_lr_si (operands[0])); - else - emit_insn (gen_eh_set_lr_di (operands[0])); + emit_insn (gen_eh_set_lr (Pmode, operands[0])); DONE; }) ; We can't expand this before we know where the link register is stored. -(define_insn_and_split "eh_set_lr_" +(define_insn_and_split "@eh_set_lr_" [(unspec_volatile [(match_operand:P 0 "register_operand" "r")] UNSPECV_EH_RR) (clobber (match_scratch:P 1 "=&b"))] "" -- 1.8.3.1