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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [sparc/] [lzd.c] - Rev 801

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

/* { dg-do compile } */
/* { dg-options "-mvis3" } */
int test_clz(int a)
{
  return __builtin_clz(a);
}
 
long test_clzl(long a)
{
  return __builtin_clzl(a);
}
 
long long test_clzll(long long a)
{
  return __builtin_clzll(a);
}
 
/* { dg-final { scan-assembler-times "lzd\t%" 3 } } */
 

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

powered by: WebSVN 2.1.0

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