Commit c5fcb94b by Joseph Myers Committed by Joseph Myers

re PR testsuite/29056 (gcc.target/powerpc/ppc-negeq0-1.c fails on powerpc64)

	PR middle-end/29056
	* gcc.target/powerpc/ppc-negeq0-1.c: Use long instead of int.
	Adjust shift and scan-assembler-not pattern to allow for 64-bit
	case.

From-SVN: r137704
parent 8dd9a120
2008-07-10 Joseph Myers <joseph@codesourcery.com>
PR middle-end/29056
* gcc.target/powerpc/ppc-negeq0-1.c: Use long instead of int.
Adjust shift and scan-assembler-not pattern to allow for 64-bit
case.
2008-07-10 Jakub Jelinek <jakub@redhat.com>
PR middle-end/36790
......
/* { dg-do compile } */
/* { dg-options "-O2" } */
int foo(int x)
long foo(long x)
{
return -(x == 0);
}
int bar(int x)
long bar(long x)
{
int t = __builtin_clz(x);
return -(t>>5);
long t = __builtin_clzl(x);
return -(t>>(sizeof(long) == 8 ? 6 : 5));
}
/* { dg-final { scan-assembler-not "cntlzw" } } */
/* { dg-final { scan-assembler-not "cntlz" } } */
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