From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1783 invoked by alias); 1 Oct 2015 20:21:04 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 1701 invoked by uid 89); 1 Oct 2015 20:21:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: e36.co.us.ibm.com Received: from e36.co.us.ibm.com (HELO e36.co.us.ibm.com) (32.97.110.154) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Thu, 01 Oct 2015 20:21:00 +0000 Received: from localhost by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 1 Oct 2015 14:20:57 -0600 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e36.co.us.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 1 Oct 2015 14:20:54 -0600 X-IBM-Helo: d03dlp03.boulder.ibm.com X-IBM-MailFrom: bergner@vnet.ibm.com X-IBM-RcptTo: gcc-patches@gcc.gnu.org Received: from b03cxnp07028.gho.boulder.ibm.com (b03cxnp07028.gho.boulder.ibm.com [9.17.130.15]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id AF5B419D8047 for ; Thu, 1 Oct 2015 14:09:06 -0600 (MDT) Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t91KHjJs28377192 for ; Thu, 1 Oct 2015 13:17:45 -0700 Received: from d03av02.boulder.ibm.com (localhost [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t91KKrTc004599 for ; Thu, 1 Oct 2015 14:20:53 -0600 Received: from [9.65.170.6] (sig-9-65-170-6.ibm.com [9.65.170.6]) by d03av02.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t91KKqUH004552; Thu, 1 Oct 2015 14:20:52 -0600 Subject: Re: [PATCH] Convert SPARC to LRA From: Peter Bergner To: Segher Boessenkool Cc: Vladimir Makarov , gcc-patches@gcc.gnu.org, Michael Meissner In-Reply-To: <1443536821.13186.131.camel@otta> References: <20150908.214115.1585933992134500164.davem@davemloft.net> <2D64499C-B66A-4873-BDB9-C6190FF539FE@comcast.net> <56089802.7010803@redhat.com> <560993B9.70105@redhat.com> <20150928202838.GA1401@gate.crashing.org> <1443536821.13186.131.camel@otta> Content-Type: text/plain; charset="UTF-8" Date: Thu, 01 Oct 2015 20:21:00 -0000 Message-ID: <1443730851.13186.182.camel@otta> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15100120-0021-0000-0000-00001352E69E X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00126.txt.bz2 On Tue, 2015-09-29 at 09:27 -0500, Peter Bergner wrote: > The first ICE seems to be due to a conversion to long double and LRA ends > up going into a infinite loop spilling things until it hits a threshold and > quits with an ICE. I haven't spent enough time to determine whether this > is a LRA or port issue yet though. The simplest test case I have at the > moment is: > > bergner@genoa:~/gcc/BUGS/LRA/20011123-1$ cat bug2.i > void > foo (long double *ldb1, double *db1) > { > *ldb1 = *db1; > } > bergner@genoa:~/gcc/BUGS/LRA/20011123-1$ /home/bergner/gcc/build/gcc-fsf-mainline-bootstrap-lra-default-debug/gcc/xgcc -B/home/bergner/gcc/build/gcc-fsf-mainline-bootstrap-lra-default-debug/gcc/ -S -O1 -mvsx -S bug2.i > bug2.i: In function ‘foo’: > bug2.i:5:1: internal compiler error: Max. number of generated reload insns per insn is achieved (90) So working with Segher and Mike offline, this ends up being a problem with rs6000.md's *extenddftf2_internal pattern using the constraint "ws" in alternative 2. TFmode variables are not allowed in Altivec registers, so this pattern should be using the "d" constraint instead. I'm testing a patch. Peter