blob: 8971a47a0b7b90a72ab138d14cd1f25a4e3aaee4 [file] [log] [blame]
/* Check that we don't 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=v3" } */
/* { dg-final { scan-assembler-not "\[ \t\]swapwbr\[ \t\]" } } */
int
f (int a)
{
return __builtin_ctz(a);
}