From patchwork Mon Jul 1 17:59:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 1125533 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-504107-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="jiCJCIDl"; dkim-atps=neutral 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 45cwD055Cfz9sPQ for ; Tue, 2 Jul 2019 04:01:20 +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=Nwwi6dUTXSrE726/uSd low3U2LDYajAh8gXxcG3QItLzgw/yj9PuEdU/WZ2AsQcCBBudrx0aPwdzUeUvnHK LIhbTVermmr/Y7/N6eY6KBVW+G2PtOy6i6Cz4er9wKP+8bHT1ORuGprUg5EGbxis FpHCZnL9QMAgBA1mvAM5cXsI= 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=wP2FkbAeSRrWzaKHJwyet2q8e Tk=; b=jiCJCIDlpALoHeUWUEx8PuLDfExzYLIR6O497w64eWVDvPuwv6sdU9E1c 0oRs93E60QEHTaK9urGKfFXfG2471ELQeZAMkN0yyNYpj6RLvHa0bLiTzocdVsPA eQellHOF4IF7X7qzz2DMHhs8UKYqXqQaxqd+ALgyS7dcJ4KDpE= Received: (qmail 129384 invoked by alias); 1 Jul 2019 18:01:13 -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 129371 invoked by uid 89); 1 Jul 2019 18:01:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT 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:01:12 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 5BF161240673; Mon, 1 Jul 2019 18:01:11 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 01/12] @neg2 Date: Mon, 1 Jul 2019 17:59:48 +0000 Message-Id: <1b3393adbbed5efbb6e0464b486d6fd9f7e65719.1561994239.git.segher@kernel.crashing.org> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (neg2): Make this a parameterized name. (allocate_stack): 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 d0d272a..63823c4 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -2249,7 +2249,7 @@ (define_insn "subf3_carry_in_xx" [(set_attr "type" "add")]) -(define_insn "neg2" +(define_insn "@neg2" [(set (match_operand:GPR 0 "gpc_reg_operand" "=r") (neg:GPR (match_operand:GPR 1 "gpc_reg_operand" "r")))] "" @@ -9810,10 +9810,7 @@ (define_expand "allocate_stack" { operands[1] = force_reg (Pmode, operands[1]); neg_op0 = gen_reg_rtx (Pmode); - if (TARGET_32BIT) - emit_insn (gen_negsi2 (neg_op0, operands[1])); - else - emit_insn (gen_negdi2 (neg_op0, operands[1])); + emit_insn (gen_neg2 (Pmode, neg_op0, operands[1])); } else neg_op0 = GEN_INT (-INTVAL (operands[1])); 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)) From patchwork Mon Jul 1 17:59:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 1125540 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-504109-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="noE/1T/j"; dkim-atps=neutral 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 45cwll1hbTz9sPF for ; Tue, 2 Jul 2019 04:25:23 +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=XUkrBGcPzGtpx2dmQnW rcwwMvMKd1D6yvyY5dPWcaJHhVY90XsIGWDWCNKdsk2jYqMzci2o7kuNjvt5yxfy 1DuRZMhHvAXYMSdpVFfKXuY1u6Bl/Q7MSj3jtsRyAEOafWjmXMC794cCjYxUWlQ7 9NaOwIK5z9bhVH9ET5I5vdqs= 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=GCXr999oi0uENvey0uI+tBWps W0=; b=noE/1T/jqnmkE8s1HLvzFxmEr5Bd58FPBC7K4+1wexNsYzZbRHBYRqICh o9GGUXH1wQLs+oQ0QVq9nvagKuBvxTAuSLDHBcGycGw7ZGY292E4fTXxVPf5DzxC wxZywoYVcFk6AdrfG3LibVqn/LU3qAhqabAV252F2cSlLs3UIg= 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-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 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, 1 Jul 2019 17:59:50 +0000 Message-Id: <0229ca3fae32185297fca8060dd89fe55e46d0ba.1561994239.git.segher@kernel.crashing.org> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes 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)) From patchwork Mon Jul 1 17:59:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 1125542 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-504110-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="IZD1dylF"; dkim-atps=neutral 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 45cwmm0xJ0z9sPF for ; Tue, 2 Jul 2019 04:26:15 +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=eWL1rrh6gVRYTTH+s0R cdjbVGoW4EazVQgRzazRyK33BhDDC93g4oM3D8jV1yJtnyosS7RxLoLFStzkKyLy +p/wtfKWR74sm2tBxgmpMHux+rWimWEz4ZGCqWLzKSev+zHM89u7OKBGvwAScHlJ 0a7bmBmh9bRO2gr4qrWqTNLU= 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=72EMQuY/X4U0miZVvi51dwEE2 h8=; b=IZD1dylF0yIRWbyDKak1fGVaTsPygBTLkpx3UPNgIlEiaAk0Ct52DRdRs O89abYM3YDFw8uCRWqHjiq45Aio3E5JcZ/sj3ryfBBIFLnXF47yhTuTCyb0i7ftf z4yBMX8IJkJ25ShNMxQjDD4dMCQiYk4n4Ltm2jTEV6MoM6azik= Received: (qmail 11845 invoked by alias); 1 Jul 2019 18:26:09 -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 11834 invoked by uid 89); 1 Jul 2019 18:26:09 -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:26:08 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id BCAA41240673; Mon, 1 Jul 2019 18:26:06 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 04/12] @indirect_jump_nospec Date: Mon, 1 Jul 2019 17:59:51 +0000 Message-Id: <3f0372ef102f9ade22514613d9d26d4b58a2bd55.1561994239.git.segher@kernel.crashing.org> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (indirect_jump_nospec): Make this a parameterized name. (indirect_jump): 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 ca8b0c0..d665316 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -12410,10 +12410,7 @@ (define_expand "indirect_jump" { if (!rs6000_speculate_indirect_jumps) { rtx ccreg = gen_reg_rtx (CCmode); - if (Pmode == DImode) - emit_jump_insn (gen_indirect_jumpdi_nospec (operands[0], ccreg)); - else - emit_jump_insn (gen_indirect_jumpsi_nospec (operands[0], ccreg)); + emit_jump_insn (gen_indirect_jump_nospec (Pmode, operands[0], ccreg)); DONE; } }) @@ -12425,7 +12422,7 @@ (define_insn "*indirect_jump" "b%T0" [(set_attr "type" "jmpreg")]) -(define_insn "indirect_jump_nospec" +(define_insn "@indirect_jump_nospec" [(set (pc) (match_operand:P 0 "register_operand" "c,*l")) (clobber (match_operand:CC 1 "cc_reg_operand" "=y,y"))] "!rs6000_speculate_indirect_jumps" From patchwork Mon Jul 1 17:59:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 1125543 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-504111-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="UID3UrHB"; dkim-atps=neutral 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 45cwmz61Drz9sPF for ; Tue, 2 Jul 2019 04:26:27 +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=dfkzYooKYkjhL/zNd7r VllOs7USHDGcWZfxRMm0usNnmTPlBElbHvPFoeesyObmprdoiyf0gSau9xtXamQi WvMnbfZuFnSs+OyDcR+NAUe12SZCW980Mj0PF+XVs1Z8AAhsFDMtQURZezjxmddA OIqneRbWpMmOgD7Q9MfETKlA= 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=P/T1Q+l/GXQcJt35d5q3fRiFd xo=; b=UID3UrHBWHrEQsV4N78JbQWftlRr6siXvIyr2O2SKDLF9MeOckFW+6zbh BcsmdmBiUuq6EJgRHpjb1s+ifh3R5vgWt/EvMeu2hvCUMbpSJnWjLcROoGSBEjtq lTYMxsMbmQt1o2amQwwzqYVTrIm5WX4018LPO1DAW8vbewDToE= Received: (qmail 13215 invoked by alias); 1 Jul 2019 18:26:20 -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 13170 invoked by uid 89); 1 Jul 2019 18:26:19 -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:18 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 543F71240673; Mon, 1 Jul 2019 18:26:17 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 05/12] @ctr Date: Mon, 1 Jul 2019 17:59:52 +0000 Message-Id: <939e6496f4a5a85bd007b6e78fdf9b9cb0919330.1561994239.git.segher@kernel.crashing.org> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (ctr): Make this a parameterized name. (doloop_end): Use that name. Simplify. --- gcc/config/rs6000/rs6000.md | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index d665316..381f140 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -12566,22 +12566,14 @@ (define_expand "doloop_end" (use (match_operand 1))] ; label "" { - if (TARGET_64BIT) - { - if (GET_MODE (operands[0]) != DImode) - FAIL; - emit_jump_insn (gen_ctrdi (operands[0], operands[1])); - } - else - { - if (GET_MODE (operands[0]) != SImode) - FAIL; - emit_jump_insn (gen_ctrsi (operands[0], operands[1])); - } + if (GET_MODE (operands[0]) != Pmode) + FAIL; + + emit_jump_insn (gen_ctr (Pmode, operands[0], operands[1])); DONE; }) -(define_expand "ctr" +(define_expand "@ctr" [(parallel [(set (pc) (if_then_else (ne (match_operand:P 0 "register_operand") (const_int 1)) From patchwork Mon Jul 1 17:59:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 1125544 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-504112-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="gDN5ZjeE"; dkim-atps=neutral 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 45cwnG4rWvz9sPF for ; Tue, 2 Jul 2019 04:26:42 +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=dAObXiDLKbn0SdQ32+o bZ7sUpY5V8mJG+4kYZS5EuBEEC1AAxUXfH0q+cjP0yPpGKdyLywvpiVLebLOdiSK EMGbrH95cck9bB6O0SvVv7FCswDbpPeoc+z3JcGGnTFPLtwAaBGOFiIrTMv/BG98 hTnDOvCHClwgxfue9AX+MMHo= 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=dymawxSnWOqznpuVufHotId96 pg=; b=gDN5ZjeEs1VhlCit16icTn7SJgXaIXKnqhjG+SOc23cpheSIwWrZwzLAs qFg+gkCyPqqBaKGIwB1NnOozKS6RXOW36wHwKL9fVZUBuuqEpzn5OcQ6UBQWKYDW Pj3nmW7Wt29iSlZCl7fm2YhZtV6yWY03Wkqihb4wQt0se8Dnr0= 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-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 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, 1 Jul 2019 17:59:53 +0000 Message-Id: <26194ad5e9d7b2811e1fa81c726d82cb7791297b.1561994239.git.segher@kernel.crashing.org> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes 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"))] "" From patchwork Mon Jul 1 17:59:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 1125545 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-504113-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="V4VA9Nz5"; dkim-atps=neutral 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 45cwnV0Dlcz9sPF for ; Tue, 2 Jul 2019 04:26:53 +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=PjUHa4YuKt1N1cbhwQA xEKs+aATc6ZsR0Sb3T4x0rD3UkYct9tlKeMSlCHziAjvqfr+nQL3U+N1oOUC/68r vKfTM5L6omQmWFLgkCbhmzUsJqXqQwk1GGXHi6IuuBIfhKitesWEq2gDminWgoja R/N4e6HHxddGp3+pMvajJdHk= 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=/nlX88t2c3gblQ8rjBeSonncY KI=; b=V4VA9Nz5x+3JStF/tL44aLYaPJ2Z0CvB+OHC/A7IGYD9qkPvoQQnnBxwL DxZdJRyR/BFJceqmhk+6xZTPr3sTQPY6K4MAsKdZ5GfzV0XnK7Z6UOUWQ91vwulw qoavTS0slvfbeUCDZ0ANiGZpLRAquoUEwjNE1XRP0m6Y6L05MY= Received: (qmail 15670 invoked by alias); 1 Jul 2019 18:26:43 -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 15606 invoked by uid 89); 1 Jul 2019 18:26:43 -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:42 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 9E0871240673; Mon, 1 Jul 2019 18:26:40 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 07/12] @extenddf2_{fprs,vsx} Date: Mon, 1 Jul 2019 17:59:54 +0000 Message-Id: <9c08fbb97544c3afe7bb2bcc9994b39393a53068.1561994239.git.segher@kernel.crashing.org> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (extenddf2_fprs): Make this a parameterized name. (extenddf2_vsx): Make this a parameterized name. (extenddf2): Use those names. Simplify. --- gcc/config/rs6000/rs6000.md | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 881efe1..3235eb2 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -7783,31 +7783,20 @@ (define_expand "extenddf2" if (FLOAT128_IEEE_P (mode)) rs6000_expand_float128_convert (operands[0], operands[1], false); else if (TARGET_VSX) - { - if (mode == TFmode) - emit_insn (gen_extenddftf2_vsx (operands[0], operands[1])); - else if (mode == IFmode) - emit_insn (gen_extenddfif2_vsx (operands[0], operands[1])); - else - gcc_unreachable (); - } - else + emit_insn (gen_extenddf2_vsx (mode, operands[0], operands[1])); + else { rtx zero = gen_reg_rtx (DFmode); rs6000_emit_move (zero, CONST0_RTX (DFmode), DFmode); - if (mode == TFmode) - emit_insn (gen_extenddftf2_fprs (operands[0], operands[1], zero)); - else if (mode == IFmode) - emit_insn (gen_extenddfif2_fprs (operands[0], operands[1], zero)); - else - gcc_unreachable (); + emit_insn (gen_extenddf2_fprs (mode, + operands[0], operands[1], zero)); } DONE; }) ;; Allow memory operands for the source to be created by the combiner. -(define_insn_and_split "extenddf2_fprs" +(define_insn_and_split "@extenddf2_fprs" [(set (match_operand:IBM128 0 "gpc_reg_operand" "=d,d,&d") (float_extend:IBM128 (match_operand:DF 1 "nonimmediate_operand" "d,m,d"))) @@ -7826,7 +7815,7 @@ (define_insn_and_split "extenddf2_fprs" operands[4] = simplify_gen_subreg (DFmode, operands[0], mode, lo_word); }) -(define_insn_and_split "extenddf2_vsx" +(define_insn_and_split "@extenddf2_vsx" [(set (match_operand:IBM128 0 "gpc_reg_operand" "=d,d") (float_extend:IBM128 (match_operand:DF 1 "nonimmediate_operand" "wa,m")))] From patchwork Mon Jul 1 17:59:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 1125546 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-504114-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="j8E/ybAw"; dkim-atps=neutral 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 45cwnj5VTpz9sPF for ; Tue, 2 Jul 2019 04:27:05 +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=OtlH4HnbJdzYLIUM6Fr nE3iRF8zgfcuXknsYfk7svGG6pLkDHsTwUykJhuDyweL0pR3I28opjoQGYoravaR x9Bf7k9nJzsUMeBQk51Gw9EOqiNApOw8ftejX4/LnBLL89PGUXmTIKDBhnq1xkln zhbYK9jkd0jt03yh3t51Uqxk= 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=euEBJDKRfYgFsM7Zb+mKGIuP9 Nc=; b=j8E/ybAwHFjxyw0+yVYCTwOewvKjp8Nqo3H8YJxrD42QR6kYJsb07JnI9 IiXDLtdPANbXwsl48haTNOXua9Hq0xALSSpqiv/aHEpmWMYCX/FnZ+jTwTOEscXQ w5ofiVuVefClbU6zNl9+JVZKNR0iA0rh5mVJz3JvOkPZhX+ph8= Received: (qmail 17398 invoked by alias); 1 Jul 2019 18:26: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 17369 invoked by uid 89); 1 Jul 2019 18:26:57 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT 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:56 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 4AF911240673; Mon, 1 Jul 2019 18:26:55 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 08/12] @extenddf2 Date: Mon, 1 Jul 2019 17:59:55 +0000 Message-Id: In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (extenddf2): Make this a parameterized name. (floatsi2): 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 3235eb2..5b3e458 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -7775,7 +7775,7 @@ (define_insn_and_split "*mov_softfloat" (const_string "8") (const_string "16"))])]) -(define_expand "extenddf2" +(define_expand "@extenddf2" [(set (match_operand:FLOAT128 0 "gpc_reg_operand") (float_extend:FLOAT128 (match_operand:DF 1 "gpc_reg_operand")))] "TARGET_HARD_FLOAT && TARGET_LONG_DOUBLE_128" @@ -7922,12 +7922,7 @@ (define_expand "floatsi2" { rtx tmp = gen_reg_rtx (DFmode); expand_float (tmp, op1, false); - if (mode == TFmode) - emit_insn (gen_extenddftf2 (op0, tmp)); - else if (mode == IFmode) - emit_insn (gen_extenddfif2 (op0, tmp)); - else - gcc_unreachable (); + emit_insn (gen_extenddf2 (mode, op0, tmp)); DONE; } }) From patchwork Mon Jul 1 17:59:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 1125547 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-504115-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="lcc8sUj9"; dkim-atps=neutral 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 45cwnx5gYjz9sPF for ; Tue, 2 Jul 2019 04:27:17 +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=ViGQHQAM6nd3dpm3WR8 FeEZKOMckJ8QCThp30eA+R7f/yWicmCG23DKpK9F5Be9CYr9HBao8jbLC8C9l+/C kQwSRqiqB8MzYkHZzCkxbUXJOUpcroPbkqnKvT7Iv0ynF7Vi/ZGL/kPvwr7AVWDY wNhQ8cSCbP53UbKjVukWe3v8= 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=24SYLkt1mc8G6wuNrw9oaB3Nu Dw=; b=lcc8sUj9LAMoySdNMPmam50YU2j2MPBA0ag07/qgNqcz8Das8a/T+KgON AZAMtFSt4q35ByxNJ+swW1IGXqaGdIjz0iez8iKuO+Ho5lHlLDvsoxVCcRSIJgBk KpgGYJK6+6HASWROxv8IIZ/kyztXVw1gTGEoUq9fYSh+aETknw= Received: (qmail 18482 invoked by alias); 1 Jul 2019 18:27:06 -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 18430 invoked by uid 89); 1 Jul 2019 18:27:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.9 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:27:04 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 1D7751240673; Mon, 1 Jul 2019 18:27:03 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 09/12] @neg2_hw Date: Mon, 1 Jul 2019 17:59:56 +0000 Message-Id: <5e891e478f4fee38da6d423413f153791802832f.1561994239.git.segher@kernel.crashing.org> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (neg2_hw): Make this a parameterized name. (neg2): Use that name. Simplify. --- gcc/config/rs6000/rs6000.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 5b3e458..27fdc4f 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -8068,14 +8068,7 @@ (define_expand "neg2" if (FLOAT128_IEEE_P (mode)) { if (TARGET_FLOAT128_HW) - { - if (mode == TFmode) - emit_insn (gen_negtf2_hw (operands[0], operands[1])); - else if (mode == KFmode) - emit_insn (gen_negkf2_hw (operands[0], operands[1])); - else - gcc_unreachable (); - } + emit_insn (gen_neg2_hw (mode, operands[0], operands[1])); else if (TARGET_FLOAT128_TYPE) { if (mode == TFmode) @@ -13905,7 +13898,7 @@ (define_insn "copysign3_soft" [(set_attr "type" "veccomplex") (set_attr "length" "8")]) -(define_insn "neg2_hw" +(define_insn "@neg2_hw" [(set (match_operand:IEEE128 0 "altivec_register_operand" "=v") (neg:IEEE128 (match_operand:IEEE128 1 "altivec_register_operand" "v")))] From patchwork Mon Jul 1 17:59:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 1125548 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-504116-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="NMBDfNv9"; dkim-atps=neutral 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 45cwp91W1dz9sPb for ; Tue, 2 Jul 2019 04:27:29 +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=ODr8fSxM1zYLI62IMFn ji5E30NvRvlxETGVuNTc+BIoP9sJ/keZ/bJF6V5QFdVFzo+40rYd83MFN1C/Jfo6 oYX5DmSMDm40BtiC38JnjBG/2YSeXNlj3vcU0euUcdLdv5n9mK4DmhAMe3j1+rrM NpigRZ7hS/ixDWAigTTJZjTs= 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=pfKS9h2HG6NgIQAFqOS6zp8/X lo=; b=NMBDfNv9SNRxkUUOJp4SHHKyMDJvzlrKZU0wEkavHsrPuvrZZO+qccDIt NkIUbfyGABy3XgrGrdEeDZ/1Q7IeHT7qdgdholktXmsNcn6QDN0qqxFbvc4f/x8V aNwt9acHbrG6+lb4JTcsjcHgJcUXY0Yq/y+w/K9ctgfV+QmjPI= Received: (qmail 19097 invoked by alias); 1 Jul 2019 18:27:11 -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 19046 invoked by uid 89); 1 Jul 2019 18:27:11 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.9 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:27:09 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 818DB1240673; Mon, 1 Jul 2019 18:27:08 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 10/12] @abs2_hw Date: Mon, 1 Jul 2019 17:59:57 +0000 Message-Id: <468ba9b241b5f9a014775d6993232a6e47fde84e.1561994239.git.segher@kernel.crashing.org> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (abs2_hw): 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 27fdc4f..974f0b1 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -8117,12 +8117,7 @@ (define_expand "abs2" { if (TARGET_FLOAT128_HW) { - if (mode == TFmode) - emit_insn (gen_abstf2_hw (operands[0], operands[1])); - else if (mode == KFmode) - emit_insn (gen_abskf2_hw (operands[0], operands[1])); - else - FAIL; + emit_insn (gen_abs2_hw (mode, operands[0], operands[1])); DONE; } else if (TARGET_FLOAT128_TYPE) @@ -13908,7 +13903,7 @@ (define_insn "@neg2_hw" (set_attr "size" "128")]) -(define_insn "abs2_hw" +(define_insn "@abs2_hw" [(set (match_operand:IEEE128 0 "altivec_register_operand" "=v") (abs:IEEE128 (match_operand:IEEE128 1 "altivec_register_operand" "v")))] From patchwork Mon Jul 1 17:59:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 1125558 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-504117-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="H6LDAaxE"; dkim-atps=neutral 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 45cwpN6sc4z9sBp for ; Tue, 2 Jul 2019 04:27:40 +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=teB3IrxZ3m/vG2zAq2J 2+26JvRMMd2hRB2PpZ+IhlBAQmoUT8IyC404YiyvjQnFNcN09ORchT7/XqlIFdMl EL9ZNQMRWLzaoZePIkHwtmFYP3bsMQ/X+B4TSxsAfLv1lrHlTWJmzr6O3h6EAV4o 8r2pcpNDnji5B2doYJgmKzVk= 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=MvsVsnrj+dMtqGstMGKkB0uj2 iI=; b=H6LDAaxEzZ+BDmlBJ7ma0sbWalQ4F7wlfbpNhHdHfrxKDxwRzqgWtGcLo Fr9oMLf4LSvxCaVadG6icIOGx7Z8NZpw7hX2SklbPj2IBtLMH2OcQHK1zjj4yQ88 nX8SQ5RopZ0jooGneQXJmt5srJR1ncPLpwgun7hvsG3qU+/8kA= Received: (qmail 19875 invoked by alias); 1 Jul 2019 18:27:17 -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 19836 invoked by uid 89); 1 Jul 2019 18:27:17 -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, KAM_NUMSUBJECT 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:27:16 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 10A601240673; Mon, 1 Jul 2019 18:27:14 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 11/12] @ieee_128bit_vsx_neg2 Date: Mon, 1 Jul 2019 17:59:58 +0000 Message-Id: <20df32e54fb13686780169ea1201c1976de25553.1561994239.git.segher@kernel.crashing.org> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (ieee_128bit_vsx_neg2): Make this a parameterized name. (neg2): Use that name. Simplify. --- gcc/config/rs6000/rs6000.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 974f0b1..86acaae 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -8070,14 +8070,8 @@ (define_expand "neg2" if (TARGET_FLOAT128_HW) emit_insn (gen_neg2_hw (mode, operands[0], operands[1])); else if (TARGET_FLOAT128_TYPE) - { - if (mode == TFmode) - emit_insn (gen_ieee_128bit_vsx_negtf2 (operands[0], operands[1])); - else if (mode == KFmode) - emit_insn (gen_ieee_128bit_vsx_negkf2 (operands[0], operands[1])); - else - gcc_unreachable (); - } + emit_insn (gen_ieee_128bit_vsx_neg2 (mode, + operands[0], operands[1])); else { rtx libfunc = optab_libfunc (neg_optab, mode); @@ -8189,7 +8183,7 @@ (define_expand "ieee_128bit_negative_zero" ;; twiddle the sign bit. Later GCSE passes can then combine multiple uses of ;; neg/abs to create the constant just once. -(define_insn_and_split "ieee_128bit_vsx_neg2" +(define_insn_and_split "@ieee_128bit_vsx_neg2" [(set (match_operand:IEEE128 0 "register_operand" "=wa") (neg:IEEE128 (match_operand:IEEE128 1 "register_operand" "wa"))) (clobber (match_scratch:V16QI 2 "=v"))] From patchwork Mon Jul 1 17:59:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 1125560 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-504118-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="aAZbP7iv"; dkim-atps=neutral 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 45cwpc2gp8z9sLt for ; Tue, 2 Jul 2019 04:27:52 +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=g7D7w/oSYdh0qU9cwPM ObvUtzBpe91v/RzpvUShdxqZ8d5W0jGhFE9XehkIrbO7pu4j8eRP3N7XGHFKVXiH UWYqIIcszq8PUAVxY/s0OqRpeHM7UFkChD3+Qvia+tjXEfsEpeOYuNJKH2+nPo2x gX7KfD8lj1uehuaY95z8CC6g= 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=NOGeLXLU1qiaRoosEQDJDdfG/ Bs=; b=aAZbP7ivtWUSaKfK6HYYglyqjO/4v8S0/q0O8JVf2+/3QMnRVAwP106I3 H94gIu0N7SCOqEglywlWspuTInBSmsu8nfoQuaqDNImI9tNpFzX2HquL3W/WvFGE A3N6NXh25Glj7Ot4mDxxfgDjo7hVZ0b3J0VKiyosra2VPMEgiw= Received: (qmail 21314 invoked by alias); 1 Jul 2019 18:27:30 -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 21264 invoked by uid 89); 1 Jul 2019 18:27:29 -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, KAM_NUMSUBJECT autolearn=ham version=3.3.1 spammy=IEEE 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:27:28 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 3719F1240673; Mon, 1 Jul 2019 18:27:27 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH 12/12] @ieee_128bit_vsx_abs2 Date: Mon, 1 Jul 2019 17:59:59 +0000 Message-Id: <5058a6aa3c2abf019f9b7e9893af387c1584d72c.1561994239.git.segher@kernel.crashing.org> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (ieee_128bit_vsx_abs2): Make this a parameterized name. (abs2): Use that name. Simplify. --- gcc/config/rs6000/rs6000.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 86acaae..9e81df9 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -8116,12 +8116,8 @@ (define_expand "abs2" } else if (TARGET_FLOAT128_TYPE) { - if (mode == TFmode) - emit_insn (gen_ieee_128bit_vsx_abstf2 (operands[0], operands[1])); - else if (mode == KFmode) - emit_insn (gen_ieee_128bit_vsx_abskf2 (operands[0], operands[1])); - else - FAIL; + emit_insn (gen_ieee_128bit_vsx_abs2 (mode, + operands[0], operands[1])); DONE; } else @@ -8212,7 +8208,7 @@ (define_insn "*ieee_128bit_vsx_neg2_internal" [(set_attr "type" "veclogical")]) ;; IEEE 128-bit absolute value -(define_insn_and_split "ieee_128bit_vsx_abs2" +(define_insn_and_split "@ieee_128bit_vsx_abs2" [(set (match_operand:IEEE128 0 "register_operand" "=wa") (abs:IEEE128 (match_operand:IEEE128 1 "register_operand" "wa"))) (clobber (match_scratch:V16QI 2 "=v"))]