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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [builtin-ffs-1.c] - Diff between revs 298 and 338

Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 338
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-options "-O2" } */
 
 
extern int ffs (int) __asm ("__GI_ffs") __attribute__ ((nothrow, const));
extern int ffs (int) __asm ("__GI_ffs") __attribute__ ((nothrow, const));
 
 
int
int
ffsll (long long int i)
ffsll (long long int i)
{
{
  unsigned long long int x = i & -i;
  unsigned long long int x = i & -i;
 
 
  if (x <= 0xffffffff)
  if (x <= 0xffffffff)
    return ffs (i);
    return ffs (i);
  else
  else
    return 32 + ffs (i >> 32);
    return 32 + ffs (i >> 32);
}
}
 
 
/* { dg-final { scan-assembler-not "\nffs\n|\nffs\[^a-zA-Z0-9_\]|\[^a-zA-Z0-9_\]ffs\n" } } */
/* { dg-final { scan-assembler-not "\nffs\n|\nffs\[^a-zA-Z0-9_\]|\[^a-zA-Z0-9_\]ffs\n" } } */
 
 

powered by: WebSVN 2.1.0

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