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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [cris/] [builtin_clz_v0.c] - Blame information for rev 378

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

Line No. Rev Author Line
1 316 jeremybenn
/* Check that we don't use the lz insn for clz by checking assembler output.
2
   The lz insn was implemented in CRIS v3 (ETRAX 4).  */
3
/* { dg-do compile } */
4
/* { dg-skip-if "" { "cris*-*-elf" } { "-march*" } { "" } } */
5
/* { dg-options "-O2 -march=v0" } */
6
/* { dg-final { scan-assembler-not "\[ \t\]lz\[ \t\]" } } */
7
 
8
int
9
f (int a)
10
{
11
        return __builtin_clz(a);
12
}

powered by: WebSVN 2.1.0

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