From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7697 invoked by alias); 1 Jul 2019 18:25:16 -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 7672 invoked by uid 89); 1 Jul 2019 18:25:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.7 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:25:12 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 48C661240673; Mon, 1 Jul 2019 18:25:11 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 03/12] @abs2_internal Date: Mon, 01 Jul 2019 18:25:00 -0000 Message-Id: <0229ca3fae32185297fca8060dd89fe55e46d0ba.1561994239.git.segher@kernel.crashing.org> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00077.txt.bz2 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (abs2_internal): Make this a parameterized name. (abs2): Use that name. Simplify. --- gcc/config/rs6000/rs6000.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 48ead5e..ca8b0c0 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -8163,17 +8163,12 @@ (define_expand "abs2" } label = gen_label_rtx (); - if (mode == TFmode) - emit_insn (gen_abstf2_internal (operands[0], operands[1], label)); - else if (mode == IFmode) - emit_insn (gen_absif2_internal (operands[0], operands[1], label)); - else - FAIL; + emit_insn (gen_abs2_internal (mode, operands[0], operands[1], label)); emit_label (label); DONE; }) -(define_expand "abs2_internal" +(define_expand "@abs2_internal" [(set (match_operand:IBM128 0 "gpc_reg_operand") (match_operand:IBM128 1 "gpc_reg_operand")) (set (match_dup 3) (match_dup 5)) -- 1.8.3.1