From patchwork Thu Aug 27 13:02:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 511306 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 E383B140134 for ; Thu, 27 Aug 2015 23:03:14 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=j28vlaIa; 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:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=nvPMSGn+2ZwRdW0NjWa0ZgqjYTH0Xl2f7QUwKfO3sdMmpXlFXa tsWHGCFnGS+xdzKJ6OISoryA69OBrtNM365Xhladmv3Xe0ub0kuhM03FPKp3Ez8U Pg7S/bZ0iGN/TSQM1sLSKoisueBt2O66ccvcB1ze8rLEVGbjNK3+PgvBs= 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:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=NpTygc4oasRftFVr38Ms2Qy4yJY=; b=j28vlaIaKIGGncjNXuW9 5qXbWOZoVb9hEimoyFFs1Je5lok85kV6Cm0fS+mstp0i2Ql5bzJs1f78nnCt9Vu5 vqtAu79aBEqsfgaUgWrsoInLQGgJifebzpuEI7bbiIZQ7IlxfRhGRVMK+jNKUw/Z S9IuTPXXfvap1lf4bRV+CIw= Received: (qmail 87284 invoked by alias); 27 Aug 2015 13:03:07 -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 86990 invoked by uid 89); 27 Aug 2015 13:03:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f53.google.com Received: from mail-pa0-f53.google.com (HELO mail-pa0-f53.google.com) (209.85.220.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 27 Aug 2015 13:02:56 +0000 Received: by pacti10 with SMTP id ti10so25851095pac.0 for ; Thu, 27 Aug 2015 06:02:54 -0700 (PDT) X-Received: by 10.67.22.169 with SMTP id ht9mr6398145pad.35.1440680573735; Thu, 27 Aug 2015 06:02:53 -0700 (PDT) Received: from bubble.grove.modra.org (CPE-58-160-155-134.oycza5.sa.bigpond.net.au. [58.160.155.134]) by smtp.gmail.com with ESMTPSA id v2sm2442882pda.34.2015.08.27.06.02.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Aug 2015 06:02:53 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id DD6BBEA0078; Thu, 27 Aug 2015 22:32:47 +0930 (ACST) Date: Thu, 27 Aug 2015 22:32:47 +0930 From: Alan Modra To: gcc-patches@gcc.gnu.org Cc: David Edelsohn , Segher Boessenkool Subject: [PATCH, RS6000] Correct constraints for ior_mask Message-ID: <20150827130246.GF24814@bubble.grove.modra.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes ior_mask always splits to rtl matching rotl3_insert. The latter requires one of its input operands match the output, so let reload/lra know the equivalent operand match must also occur for ior_mask. Bootstrapped and regression tested powerpc64le-linux. OK to apply? PR target/67356 * config/rs6000/rs6000.md (ior_mask): Use constraint "0" for operand 1. diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 167e138..d6278a9 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -3651,7 +3651,7 @@ ; an insert instruction, in many cases. (define_insn_and_split "*ior_mask" [(set (match_operand:GPR 0 "gpc_reg_operand" "=r") - (ior:GPR (match_operand:GPR 1 "gpc_reg_operand" "r") + (ior:GPR (match_operand:GPR 1 "gpc_reg_operand" "0") (match_operand:GPR 2 "const_int_operand" "n"))) (clobber (match_scratch:GPR 3 "=r"))] "!logical_const_operand (operands[2], mode)