From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4081 invoked by alias); 3 Jun 2003 15:19:30 -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 3999 invoked from network); 3 Jun 2003 15:19:28 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 3 Jun 2003 15:19:28 -0000 Received: from tooth.toronto.redhat.com (tooth.toronto.redhat.com [172.16.14.29]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 428EC80001E; Tue, 3 Jun 2003 11:19:27 -0400 (EDT) Received: from tooth.toronto.redhat.com (IDENT:DBH3Eq1Bn14Vh5FMP92OS0jOhw/g+3FP@localhost [127.0.0.1]) by tooth.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id h53FJQVm027720; Tue, 3 Jun 2003 11:19:26 -0400 Received: (from fche@localhost) by tooth.toronto.redhat.com (8.12.8/8.12.8/Submit) id h53FJPUq027715; Tue, 3 Jun 2003 11:19:25 -0400 Date: Tue, 03 Jun 2003 15:19:00 -0000 From: "Frank Ch. Eigler" To: Doug Evans Cc: cgen-mail@the-meissners.org, cgen@sources.redhat.com Subject: Re: Use of DI mode on 32-bit hosts Message-ID: <20030603151925.GA7286@redhat.com> References: <20030602173232.GA5871@tiktok.the-meissners.org> <16091.36137.249864.565465@casey.transmeta.com> <20030602192217.GA7082@tiktok.the-meissners.org> <16091.46855.343504.902253@casey.transmeta.com> <20030602204936.GA22856@redhat.com> <16091.49399.661309.108837@casey.transmeta.com> <20030602213226.GB22856@redhat.com> <16091.51685.885875.214781@casey.transmeta.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <16091.51685.885875.214781@casey.transmeta.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2003-q2/txt/msg00075.txt.bz2 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1363 Hi - On Mon, Jun 02, 2003 at 03:04:21PM -0700, Doug Evans wrote: > > I guess I don't see the abstraction and simplicity this > > indirection is to provide. Do you have an example? >=20 > - I'd rather have one version of "add" for sparc 32/64 I would rather use macros that expand to SI or DI as appropriate for the two different targets, or perhaps use DI only (and rely on implicit truncation for 32-bit hardware registers). > - I'd rather write 'IAI in the .scm sources when refering to 'pc > than doing something else Likewise -- the PC register is likewise an inherently target-sized quantity. This whole argument sounds like going backward from the SI-vs-USI issue from a few weeks ago. It encodes in the type some notion of purpose, or even a deliberate lack of specificity, instead of leaving these solely in the operators. > > In what circumstances do you consider it reasonable for cgen > > model files to deal with host data types/sizes? >=20 > [...] > Sometimes the code will need a mode but imposing a specific > width muddies the waters. If one wanted to write some rtl > that looped over something, picking one of QI/HI/SI/DI > may be less appealing than "just give me a big enough int". [...] Not to me... Given the low level nature of modelling semantics in rtl, I don't consider it natural to pick "a big enough" int. - FChE --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+3Lx9VZbdDOm/ZT0RAn8hAJ9tQ5Aq6vUVRf6w26+GkQ3TQ9ZXsgCdFJA6 FeAqeeRimMEbjZUWnUKQbR4= =pPt6 -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf--