From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1561 invoked by alias); 28 Jan 2002 18:51:07 -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 1526 invoked from network); 28 Jan 2002 18:51:05 -0000 Received: from unknown (HELO mail.redhat.com) (12.107.208.239) by sources.redhat.com with SMTP; 28 Jan 2002 18:51:05 -0000 Received: from dot.sfbay.redhat.com (dot.sfbay.redhat.com [205.180.230.224]) by mail.redhat.com (8.11.6/8.8.7) with SMTP id g0SIp4C26659; Mon, 28 Jan 2002 13:51:04 -0500 Received: (from rth@localhost) by dot.sfbay.redhat.com (8.11.6/8.11.6) id g0SIoVR25942; Mon, 28 Jan 2002 10:50:31 -0800 X-Authentication-Warning: dot.sfbay.redhat.com: rth set sender to rth@redhat.com using -f Date: Mon, 28 Jan 2002 11:50:00 -0000 From: Richard Henderson To: law@redhat.com Cc: gcc@gcc.gnu.org Subject: Re: paradoxical subreg problem Message-ID: <20020128105031.D25844@redhat.com> Mail-Followup-To: Richard Henderson , law@redhat.com, gcc@gcc.gnu.org References: <16350.1012242676@porcupine.cygnus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <16350.1012242676@porcupine.cygnus.com>; from law@redhat.com on Mon, Jan 28, 2002 at 11:31:16AM -0700 X-SW-Source: 2002-01/txt/msg01813.txt.bz2 On Mon, Jan 28, 2002 at 11:31:16AM -0700, law@redhat.com wrote: > I'll start simple. On a big endian machine, can this expression be optimized > into true/false at compile time, or must it be run-time computed? > > (eq (subreg:SI (mem/s:QI (plus:SI (reg:SI 3 %r3) > (const_int 15 [0xf])) 1) 0) > (mem/s:SI (plus:SI (reg:SI 3 %r3) > (const_int 12 [0xc])) 1)) > > > Think very very carefully about the semantics of a paradoxical subreg. I'll remind you that we should only have subregs of memory during reload (while pseudos are being replaced), and even then we don't create paradoxical subregs of memory. So this is a "shouldn't happen". r~