OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [ppc-negeq0-1.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
 
4
long foo(long x)
5
{
6
  return -(x == 0);
7
}
8
 
9
long bar(long x)
10
{
11
  long t = __builtin_clzl(x);
12
  return -(t>>(sizeof(long) == 8 ? 6 : 5));
13
}
14
 
15
/* { dg-final { scan-assembler-not "cntlz" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.