gcc/testsuite/gcc.target/i386/bmi-3.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -mbmi " } */ |
| 3 | /* { dg-final { scan-assembler-times "tzcntw\[^\\n]*%?ax" 2 } } */ |
| 4 | |
| 5 | #include <x86intrin.h> |
| 6 | |
| 7 | unsigned short |
| 8 | func_tzcnt16 (unsigned short X) |
| 9 | { |
| 10 | return __tzcnt_u16(X); |
| 11 | } |
| 12 | |
| 13 | unsigned short |
| 14 | func_tzcnt16_2 (unsigned short X) |
| 15 | { |
| 16 | return _tzcnt_u16(X); |
| 17 | } |