From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14722 invoked by alias); 15 Jun 2008 16:01:27 -0000 Received: (qmail 14714 invoked by uid 22791); 15 Jun 2008 16:01:26 -0000 X-Spam-Check-By: sourceware.org Received: from province.act-europe.fr (HELO province.act-europe.fr) (212.99.106.214) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 15 Jun 2008 16:01:02 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-province.act-europe.fr (Postfix) with ESMTP id 228A116603A for ; Sun, 15 Jun 2008 18:01:00 +0200 (CEST) Received: from province.act-europe.fr ([127.0.0.1]) by localhost (province.act-europe.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FotBVSgaEJVj for ; Sun, 15 Jun 2008 18:00:59 +0200 (CEST) Received: from [192.168.1.4] (dyn-83-152-121-148.ppp.tiscali.fr [83.152.121.148]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by province.act-europe.fr (Postfix) with ESMTPSA id CEE3B165FB7 for ; Sun, 15 Jun 2008 18:00:59 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Fix ICE in simplify_immed_subreg on SPU Date: Sun, 15 Jun 2008 17:27:00 -0000 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) References: <200806151546.m5FFksow018979@d12av02.megacenter.de.ibm.com> In-Reply-To: <200806151546.m5FFksow018979@d12av02.megacenter.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806151801.56141.ebotcazou@adacore.com> 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 X-SW-Source: 2008-06/txt/msg00976.txt.bz2 > the test cases for PR 34856 ICE on SPU because simplify_subreg is > called on a CONST_VECTOR RTX of the form: > > (const_vector:V4SI [ > (const:SI (plus:SI (symbol_ref:SI ("g") [flags 0x40] 0xf70b05a0 g>) (const_int 32 [0x20]))) > (const_int 0 [0x0]) > (const_int 0 [0x0]) > (const_int 0 [0x0]) > ]) > > and everything but CONST_INT, CONST_DOUBLE or CONST_FIXED within > a CONST_VECTOR leads to an ICE in simplify_immed_subreg. > > It seems to me that having an address constant like the above appear > within a CONST_VECTOR should be OK -- it just cannot be simplified > by simplify_immed_subreg so that function should return NULL_RTX. No, we already ran into this on x86, CONST_VECTOR should only contain the aforementioned 3 kinds of constants. -- Eric Botcazou