From patchwork Tue Sep 27 00:33:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 675350 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.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 3sjhfr0KjCz9s5g for ; Tue, 27 Sep 2016 10:34:27 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=hPkcZQbE; dkim-atps=neutral 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; q=dns; s=default; b=mc/HCC4Ysi35 JwGOQXSzDDOTAEatLrtPymcKTiC2FWrIbO4U/6aNVx+n7MaRkFEcvBCpuJRnfHZ9 bIGxyPZS0T/m607FagvpXEquQegUYzaTwG4SOOnjO7NtYiPc7+V7fOMgJjOYfY93 m9549UyzG6pdL2gTb1988DBHn5PPeng= 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; s=default; bh=6XIgkjx/KjmGBpDvoR I7OuHpZB8=; b=hPkcZQbESeniLp3orG0vFT0XKuYyolKdpkREYEHw1HFyrTXMGB QHv/c954vIo9KTPzoXhGuDBEMLwriWqzeGMm2ce1uy9jBX28/w/1exgZDMqsY7Pz DQQFYlJnpmLpPq4KeLhIjd9WjH2c79RjIufPwRi+ha5CFtzph92t8OEqE= Received: (qmail 125863 invoked by alias); 27 Sep 2016 00:34:19 -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 125844 invoked by uid 89); 27 Sep 2016 00:34:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=yx, yr, y, x, 20160927 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; Tue, 27 Sep 2016 00:34:08 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id 493531C00E8; Tue, 27 Sep 2016 00:34:02 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH] rs6000: Disparage CTR and LR in movcc_internal1 Date: Tue, 27 Sep 2016 00:33:59 +0000 Message-Id: <2e84b9a3d2a12f46116328b6b449c4f361c9f3c9.1474935886.git.segher@kernel.crashing.org> X-IsSubscribed: yes Hi! LRA likes to use CTR and LR to store CCmode values. Not such a good idea. All other similar patterns disparage using CTR and LR; do so here, too. Committing to trunk. Segher 2016-09-27 Segher Boessenkool * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR. --- gcc/config/rs6000/rs6000.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 7b995ac..a9fabc1 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -6653,8 +6653,10 @@ (define_expand "movcc" "") (define_insn "*movcc_internal1" - [(set (match_operand:CC 0 "nonimmediate_operand" "=y,x,?y,y,r,r,r,r,r,cl,r,m") - (match_operand:CC 1 "general_operand" "y,r,r,O,x,y,r,I,h,r,m,r"))] + [(set (match_operand:CC 0 "nonimmediate_operand" + "=y,x,?y,y,r,r,r,r,r,*c*l,r,m") + (match_operand:CC 1 "general_operand" + " y,r, r,O,x,y,r,I,h, r,m,r"))] "register_operand (operands[0], CCmode) || register_operand (operands[1], CCmode)" "@