blob: ff08bd10835782ad5a202e33ea6762bd336317dc [file] [log] [blame]
Daniel Dunbar8b576972009-11-08 01:45:36 +00001// RUN: clang-cc -emit-llvm %s -o - | grep 'cttz' | count 2
Daniel Dunbara45cf5b2009-03-24 02:24:46 +00002// RUN: clang-cc -emit-llvm %s -o - | grep 'ctlz' | count 2
Eli Friedman5e2281e2008-05-27 15:32:46 +00003
4int a(int a) {return __builtin_ctz(a) + __builtin_clz(a);}