From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30682 invoked by alias); 19 Nov 2004 21:02:48 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 30663 invoked from network); 19 Nov 2004 21:02:44 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 19 Nov 2004 21:02:44 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iAJL2i1q000682; Fri, 19 Nov 2004 16:02:44 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iAJL2hr01435; Fri, 19 Nov 2004 16:02:43 -0500 Received: from frothingslosh.sfbay.redhat.com (frothingslosh.sfbay.redhat.com [172.16.24.27]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id iAJL2fcv026274; Fri, 19 Nov 2004 16:02:42 -0500 Received: from frothingslosh.sfbay.redhat.com (localhost.localdomain [127.0.0.1]) by frothingslosh.sfbay.redhat.com (8.13.1/8.13.1) with ESMTP id iAJL2fq1018353; Fri, 19 Nov 2004 13:02:41 -0800 Received: (from rth@localhost) by frothingslosh.sfbay.redhat.com (8.13.1/8.13.1/Submit) id iAJL2eo8018351; Fri, 19 Nov 2004 13:02:40 -0800 X-Authentication-Warning: frothingslosh.sfbay.redhat.com: rth set sender to rth@redhat.com using -f Date: Fri, 19 Nov 2004 21:50:00 -0000 From: Richard Henderson To: Eric Botcazou Cc: gcc@gcc.gnu.org Subject: Re: [cft] subreg validation round 2 Message-ID: <20041119210240.GA18341@redhat.com> Mail-Followup-To: Richard Henderson , Eric Botcazou , gcc@gcc.gnu.org References: <20041117184009.GA12257@redhat.com> <200411172021.21297.ebotcazou@libertysurf.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200411172021.21297.ebotcazou@libertysurf.fr> User-Agent: Mutt/1.4.1i X-SW-Source: 2004-11/txt/msg00698.txt.bz2 On Wed, Nov 17, 2004 at 08:21:34PM +0100, Eric Botcazou wrote: > How did you address the problem with SPARC splitters? @@ -3674,14 +3676,15 @@ simplify_subreg (enum machine_mode outer && subreg_offset_representable_p (REGNO (op), innermode, byte, outermode)) { - rtx tem = gen_rtx_SUBREG (outermode, op, byte); - int final_regno = subreg_hard_regno (tem, 0); + unsigned int regno = REGNO (op); + unsigned int final_regno + = regno + subreg_regno_offset (regno, innermode, byte, outermode); r~