This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/29056] gcc.target/powerpc/ppc-negeq0-1.c fails on powerpc64
- From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Dec 2007 18:26:50 -0000
- Subject: [Bug middle-end/29056] gcc.target/powerpc/ppc-negeq0-1.c fails on powerpc64
- References: <bug-29056-11113@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from howarth at nitro dot med dot uc dot edu 2007-12-24 18:26 -------
Would...
/* { dg-do compile } */
/* { dg-options "-O2" } */
long foo(long x)
{
return -(x == 0);
}
long bar(long x)
{
long t = __builtin_clzl(x);
return -(t>>5);
}
/* { dg-final { scan-assembler-not "cntlzw" } } */
...be an acceptable revision then. This passes on powerpc-apple-darwin9 with
gcc trunk. However I wasn't sure if the size of the shift on t in the return
statement didn't need to be changed (or eliminated)?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29056