Commit f8540d76 by Nick Clifton Committed by Nick Clifton

Add test case for this patch to combine.c:

	* combine.c (simplify_comparison): Use an unsigned shift to adjust
	the constant.

From-SVN: r29620
parent 99e0c103
1999-09-23 Nick Clifton <nickc@cygnus.com>
* execute/990923-1.c: New test.
1999-09-21 Nick Clifton <nickc@cygnus.com>
* special/special.exp: Add FR30 to list of targets for which -fpic
......
#define mask 0xffff0000L
#define value 0xabcd0000L
long
foo (long x)
{
if ((x & mask) == value)
return x & 0xffffL;
return 1;
}
int
main (void)
{
if (foo (value) != 0 || foo (0) != 1)
abort ();
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment