This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: casesi with HImode index
- To: marekm at linux dot org dot pl
- Subject: Re: casesi with HImode index
- From: Michael Meissner <meissner at cygnus dot com>
- Date: Wed, 29 Nov 2000 18:36:56 -0500
- Cc: gcc-patches at gcc dot gnu dot org
- References: <200011291719.SAA16580@marekm.home>
On Wed, Nov 29, 2000 at 06:19:09PM +0100, Marek Michalkiewicz wrote:
>
> Please consider this or similar change to allow the "casesi" pattern
> to specify a mode different from SImode for operand 0 (index).
> As I understand it (please correct if wrong), this really should be
> the mode of type "int" which is usually SImode, but might be HImode
> for some 16-bit targets. This could avoid unnecessarily extending
> the index to SImode and later only using the low 16 bits anyway on
> such targets (AVR for example).
We really should allow casehi/casedi instead of casesi, at least for
consistancy in the naming scheme. That would mean creating a case optab, etc.
--
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482