This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: casesi with HImode index


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]