blob: 853b1740aac7db4412dfffefe34e0782757686ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* Check that we use the swap insn for ctz by checking assembler output.
The swap instruction was implemented in v8. */
/* { dg-do compile } */
/* { dg-skip-if "" { "cris*-*-elf" } { "-march*" } { "" } } */
/* { dg-options "-O2 -march=v8" } */
/* { dg-final { scan-assembler "\[ \t\]swapwbr\[ \t\]" } } */
int
f (int a)
{
return __builtin_ctz(a);
}
|