URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
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" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.