From patchwork Mon Jan 6 19:33:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Meissner X-Patchwork-Id: 307430 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 DE5AE2C00C9 for ; Tue, 7 Jan 2014 06:33:24 +1100 (EST) 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:subject:message-id:mime-version:content-type; q=dns; s= default; b=nPZmaJFyWM0oMaptUo4ihyfkuZgQYVZ/O4WjTW9ejhLpFLXcCkCc5 hy+mZfYRS/EOedH2a9dTyxVlkSiXCYN1dT7GEHE2CDEPrjKbtiGp7le0IbakCUH9 5VeJqFWFLwInSyi7hXwrAVdNa6rGwVaFv8J187j9rLSI2asRzVTcm4= 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:subject:message-id:mime-version:content-type; s= default; bh=HlErSRwaUIIB1Idm7sAQfa2irKs=; b=avCQN/SzB91nLzzJyBaN cTalBYE6zvcBkSHrLM8k3vPldAGHSYA+Iqag3PnRYo02lXddwgICn0Ajm+HRsgxh ygw+55qsCGdSgDTs1KADkh6SGMVuLLREaI57EIUtN4uumNvuRGSQAeyyEwMpPlkQ C4pWVReTY+NYWv4qduzktdI= Received: (qmail 21993 invoked by alias); 6 Jan 2014 19:33: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 21981 invoked by uid 89); 6 Jan 2014 19:33:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: e34.co.us.ibm.com Received: from e34.co.us.ibm.com (HELO e34.co.us.ibm.com) (32.97.110.152) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 06 Jan 2014 19:33:12 +0000 Received: from /spool/local by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 6 Jan 2014 12:33:11 -0700 Received: from d03dlp02.boulder.ibm.com (9.17.202.178) by e34.co.us.ibm.com (192.168.1.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 6 Jan 2014 12:33:08 -0700 Received: from b03cxnp08025.gho.boulder.ibm.com (b03cxnp08025.gho.boulder.ibm.com [9.17.130.17]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id 523233E40026 for ; Mon, 6 Jan 2014 12:33:08 -0700 (MST) Received: from d03av05.boulder.ibm.com (d03av05.boulder.ibm.com [9.17.195.85]) by b03cxnp08025.gho.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s06JX7JD8716752 for ; Mon, 6 Jan 2014 20:33:08 +0100 Received: from d03av05.boulder.ibm.com (localhost [127.0.0.1]) by d03av05.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s06JX7Gk015136 for ; Mon, 6 Jan 2014 12:33:07 -0700 Received: from ibm-tiger.the-meissners.org (dhcp-9-32-77-206.usma.ibm.com [9.32.77.206]) by d03av05.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s06JX6f0015107; Mon, 6 Jan 2014 12:33:07 -0700 Received: by ibm-tiger.the-meissners.org (Postfix, from userid 500) id 5662744B77; Mon, 6 Jan 2014 14:33:06 -0500 (EST) Date: Mon, 6 Jan 2014 14:33:05 -0500 From: Michael Meissner To: gcc-patches@gcc.gnu.org, dje.gcc@gmail.com Subject: [PATCH] Fix PR57386 for 4.8/4.9 on powerpc Message-ID: <20140106193305.GA23930@ibm-tiger.the-meissners.org> Mail-Followup-To: Michael Meissner , gcc-patches@gcc.gnu.org, dje.gcc@gmail.com MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14010619-1542-0000-0000-000004F07F39 X-IsSubscribed: yes I could have sworn I sent this patch out in mid-December, but I don't see it, so I'm resending this now. This patch fixes the problem that breaks some code on the SPE. I have patches for 4.8 and 4.9. Roland says that it fixes the problem in 4.8. In 4.9 there are other unrelated problems that Roland is currently working on. I tested these patches on powerpc linux, and I did not see a regression. Are these patches ok to check into both the 4.8 and 4.9 branches? 2013-12-12 Roland Stigge Michael Meissner * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): Only check TFmode for SPE constants. Don't check TImode or TDmode. Index: gcc/config/rs6000/rs6000.c =================================================================== --- gcc/config/rs6000/rs6000.c (revision 205902) +++ gcc/config/rs6000/rs6000.c (working copy) @@ -5428,12 +5428,13 @@ rs6000_legitimate_offset_address_p (enum break; case TFmode: - case TDmode: - case TImode: if (TARGET_E500_DOUBLE) return (SPE_CONST_OFFSET_OK (offset) && SPE_CONST_OFFSET_OK (offset + 8)); + /* fall through */ + case TDmode: + case TImode: extra = 8; if (!worst_case) break;