From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15958 invoked by alias); 20 Dec 2002 17:18:01 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 15908 invoked from network); 20 Dec 2002 17:17:45 -0000 Received: from unknown (HELO neon-gw.transmeta.com) (63.209.4.196) by 209.249.29.67 with SMTP; 20 Dec 2002 17:17:45 -0000 Received: (from root@localhost) by neon-gw.transmeta.com (8.9.3/8.9.3) id JAA32465; Fri, 20 Dec 2002 09:17:31 -0800 Received: from mailhost.transmeta.com(10.1.1.15) by neon-gw.transmeta.com via smap (V2.1) id xma032456; Fri, 20 Dec 02 09:17:07 -0800 Received: from casey.transmeta.com (casey.transmeta.com [10.10.25.22]) by deepthought.transmeta.com (8.11.6/8.11.6) with ESMTP id gBKHHA329237; Fri, 20 Dec 2002 09:17:10 -0800 (PST) Received: (from dje@localhost) by casey.transmeta.com (8.9.3/8.7.3) id JAA03995; Fri, 20 Dec 2002 09:17:10 -0800 From: Doug Evans MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15875.20630.336804.109197@casey.transmeta.com> Date: Fri, 20 Dec 2002 09:18:00 -0000 To: Hans-Peter Nilsson cc: cgen@sources.redhat.com Subject: Re: [RFA:] In -build-operand!, -build-reg-operand, collect the natural mode, not the used mode, In-Reply-To: <15874.63016.319961.439872@casey.transmeta.com> References: <15866.32849.125398.731160@casey.transmeta.com> <200212140138.gBE1c6HA026946@ignucius.axis.se> <15874.63016.319961.439872@casey.transmeta.com> X-SW-Source: 2002-q4/txt/msg00117.txt.bz2 Doug Evans writes: > Ugh, I just realized that this patch doesn't handle floating point. > And I've left as a todo the checking of legal mode conversions. And I don't properly handle sets. I was going to, but it was 3 in the morning. :-) I think what we want to do is require all sets of registers to use the natural mode of the register. For registers like x86's al,ah,ax,eax, we can either - add set-partial, or some such - use (set (subword ...) ...) - require the description of additional registers that are smaller-mode aliases of the "real" register I think I prefer either of the latter two.