From patchwork Mon Jul 1 17:59:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 1125539 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-504108-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.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 45cwlG2VdSz9sPF for ; Tue, 2 Jul 2019 04:24:51 +1000 (AEST) 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:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; q=dns; s=default; b=vryIXRUu7iBfYUaZzW5 tM7gtzQ1W1I3NZhjUIh0BPC9w8ss+tGuyqdJxDuY0SGxNSPGTYx2BVyrWx2EYFno hN2I6PX5DJxa8Vo3qFF3YK70NXdXTTCZTu9VOl3NIA2cuuATJAmYE98L+/hISnuq aCAAiGSWKAl5LHXQAV3ETLz4= 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:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; s=default; bh=T5evfFF/yeWRE3C5svm9aNZz+ 8I=; b=KUZskAj3udIHf5iDprerDSBVJ1fwvOO2l1ffrCEjbWVQpoWlI0NAZVWt1 gbqFZvwM5jMcOVhMhr6XhleWFtRdjW5dw5ppHlf+dZYY4LEUBG1MQayFH5srU4Qt icqG2EXKKNVw3YQh2uXxdUeh4lB2nKjppBANWhb7hJqmmtv/JQ= Received: (qmail 5980 invoked by alias); 1 Jul 2019 18:24:44 -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 5972 invoked by uid 89); 1 Jul 2019 18:24:44 -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:24:43 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 8A9D91240673; Mon, 1 Jul 2019 18:24:41 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 02/12] @fix_truncsi2_fprs Date: Mon, 1 Jul 2019 17:59:49 +0000 Message-Id: In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (fix_truncsi2_fprs): Make this a parameterized name. (fix_truncsi2): Use that name. Simplify. --- gcc/config/rs6000/rs6000.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 63823c4..48ead5e 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -7969,17 +7969,13 @@ (define_expand "fix_truncsi2" { if (FLOAT128_IEEE_P (mode)) rs6000_expand_float128_convert (op0, op1, false); - else if (mode == TFmode) - emit_insn (gen_fix_trunctfsi2_fprs (op0, op1)); - else if (mode == IFmode) - emit_insn (gen_fix_truncifsi2_fprs (op0, op1)); else - gcc_unreachable (); + emit_insn (gen_fix_truncsi2_fprs (mode, op0, op1)); DONE; } }) -(define_expand "fix_truncsi2_fprs" +(define_expand "@fix_truncsi2_fprs" [(parallel [(set (match_operand:SI 0 "gpc_reg_operand") (fix:SI (match_operand:IBM128 1 "gpc_reg_operand"))) (clobber (match_dup 2))