Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.target / cris / builtin_ctz_v3.c
blob17b14c788ce9788a9e9300b420a7bdcf7bcb7c9d
1 /* Check that we don't use the swap insn for ctz by checking
2 assembler output. The swap instruction was implemented in v8. */
3 /* { dg-do compile } */
4 /* { dg-skip-if "" { "cris-*-elf" } { "-march*" } { "" } } */
5 /* { dg-options "-O2 -march=v3" } */
6 /* { dg-final { scan-assembler-not "\[ \t\]swapwbr\[ \t\]" } } */
8 int
9 f (int a)
11 return __builtin_ctz(a);