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
+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" } } */