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:
> > 	* 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);
}



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