From patchwork Thu Sep 4 22:50:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 386042 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 234D11400DE for ; Fri, 5 Sep 2014 08:54:41 +1000 (EST) 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=tgrftUjZNfId u1vAaT8xDLOxE7DncdMMFv2PC631VGJh11A0YogTxsdPMIA+4Z+PZ97Xgjjsg48A hzs4EwNsxHvjhd6o6/ANn8QxlNU35sbw/nQba3bTYaadOBZNLt1CKA7vMhRJHRTd SNM1TkRAEptS7GPBrhEGPNuj7Ujox1s= 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=ppuOqFXwTgsNNmNhqy 8npaFEBik=; b=Vqpn2MvYRS3HnmRCybJcuCzsMRoC8KDliFZDKcr6zMxggBvoQ6 mXzuFxvhnpExEzjfIq6j6buDqa69vRYcOptmTWEZBzGosoa4TN+EVg/G20p+Cq7T G5tI4U8prKwtD3dlrk9foVZaxlVTM7N63V7WIUgAn4jYINZXMmUhb+6/w= Received: (qmail 17573 invoked by alias); 4 Sep 2014 22:54:33 -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 17560 invoked by uid 89); 4 Sep 2014 22:54:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 04 Sep 2014 22:54:30 +0000 Received: from gcc1-power7.osuosl.org (localhost [127.0.0.1]) by gcc1-power7.osuosl.org (8.14.6/8.14.6) with ESMTP id s84MowxQ013402; Thu, 4 Sep 2014 15:50:58 -0700 Received: (from segher@localhost) by gcc1-power7.osuosl.org (8.14.6/8.14.6/Submit) id s84Mou40008547; Thu, 4 Sep 2014 15:50:56 -0700 From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: dje.gcc@gmail.com, Segher Boessenkool Subject: [PATCH, committed] rs6000: Fix for PR63165 Date: Thu, 4 Sep 2014 15:50:42 -0700 Message-Id: X-IsSubscribed: yes My extend* pattern patches exposed a problem elsewhere. I don't build java so I didn't see it. This fixes it. Also handles the zero-extend case, that had the same problem. Pre-approved by David, committed. Segher 2014-09-04 Segher Boessenkool PR target/63165 * config/rs6000/rs6000.md (floatsi2_lfiwax_mem): Use indexed_or_indirect_operand instead of memory_operand. (floatsi2_lfiwzx_mem): Ditto. --- gcc/config/rs6000/rs6000.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 9c0002d..0934467 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -5514,7 +5514,7 @@ (define_insn_and_split "floatsi2_lfiwax_mem" [(set (match_operand:SFDF 0 "gpc_reg_operand" "=d,") (float:SFDF (sign_extend:DI - (match_operand:SI 1 "memory_operand" "Z,Z")))) + (match_operand:SI 1 "indexed_or_indirect_operand" "Z,Z")))) (clobber (match_scratch:DI 2 "=0,d"))] "TARGET_HARD_FLOAT && TARGET_FPRS && TARGET_DOUBLE_FLOAT && TARGET_LFIWAX && " @@ -5589,7 +5589,7 @@ (define_insn_and_split "floatunssi2_lfiwzx_mem" [(set (match_operand:SFDF 0 "gpc_reg_operand" "=d,") (unsigned_float:SFDF (zero_extend:DI - (match_operand:SI 1 "memory_operand" "Z,Z")))) + (match_operand:SI 1 "indexed_or_indirect_operand" "Z,Z")))) (clobber (match_scratch:DI 2 "=0,d"))] "TARGET_HARD_FLOAT && TARGET_FPRS && TARGET_DOUBLE_FLOAT && TARGET_LFIWZX && "