Commit 5a78838a by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

re PR target/17984 (Recent peephole2:s may cause internal compiler errors (2))

	PR target/17984
	* gcc.dg/cris-peep2-xsrand2.c: New test.

From-SVN: r89010
parent 61f03aba
2004-10-14 Hans-Peter Nilsson <hp@axis.com>
PR target/17984
* gcc.dg/cris-peep2-xsrand2.c: New test.
2004-10-13 Andrew Pinski <pinskia@physics.uc.edu> 2004-10-13 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/17661 PR c++/17661
......
/* { dg-do compile { target cris-*-* } } */
/* { dg-final { scan-assembler "and.w -137," } } */
/* { dg-final { scan-assembler "and.b -64," } } */
/* { dg-final { scan-assembler "and.w -139," } } */
/* { dg-final { scan-assembler "and.b -63," } } */
/* { dg-final { scan-assembler-not "and.d" } } */
/* { dg-options "-O2" } */
/* PR target/17984. Test-case based on
testsuite/gcc.dg/cris-peep2-xsrand.c. */
unsigned int
andwlsr (unsigned int x)
{
return (x >> 16) & 0xff77;
}
unsigned int
andblsr (unsigned int x)
{
return (x >> 24) & 0xc0;
}
int
andwasr (int x)
{
return (x >> 16) & 0xff75;
}
int
andbasr (int x)
{
return (x >> 24) & 0xc1;
}
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