Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.target / cris / builtin_clz_v3.c
blobecf0390487f30f4708028b92c99aa79c41164987
1 /* Check that we 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=v3" } */
6 /* { dg-final { scan-assembler "\[ \t\]lz\[ \t\]" } } */
8 int
9 f (int a)
11 return __builtin_clz(a);