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"