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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [cris/] [builtin_ctz_v8.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
/* Check that we use the swap insn for ctz by checking assembler output.
2
   The swap instruction was implemented in v8.  */
3
/* { dg-do compile } */
4
/* { dg-skip-if "" { "cris*-*-elf" } { "-march*" } { "" } } */
5
/* { dg-options "-O2 -march=v8" } */
6
/* { dg-final { scan-assembler "\[ \t\]swapwbr\[ \t\]" } } */
7
 
8
int
9
f (int a)
10
{
11
        return __builtin_ctz(a);
12
}

powered by: WebSVN 2.1.0

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