This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: casesi with HImode index
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: casesi with HImode index
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Thu, 30 Nov 2000 10:57:50 +0000
- Cc: Marek Michalkiewicz <marekm at linux dot org dot pl>, gcc-patches at gcc dot gnu dot org
- Cc: rearnsha at arm dot com
- Organization: ARM Ltd.
- Reply-To: rearnsha at arm dot com
> On Wed, Nov 29, 2000 at 06:19:09PM +0100, Marek Michalkiewicz wrote:
> > * stmt.c (expand_end_case): Convert the index to the mode of
> > "casesi" operand 0, do not assume it is always SImode.
>
> Ok, but you need to update the documentation in md.texi as well.
>
>
> r~
Does the change still work with the following input?
void bar (long x)
{
switch (x)
{
case 1:
case 3:
case 5:
case 7:
case 9:
case 11:
case 12:
abort();
default:
return;
}
main()
{
bar (13L);
bar (65536+12L);
exit(0);
}