2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr59874-1.c
blobe6a8a06dd52d38ffeaeda0b12fd36aa11cd1d6c4
1 /* PR target/59874 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -mbmi -masm=att" } */
4 /* { dg-final { scan-assembler "tzcntw" } } */
6 unsigned int
7 foo (unsigned short x)
9 return x ? __builtin_ctz (x) : 16U;