llvm-project/clang/test/CodeGen/builtin-count-zeros.c

5 lines
177 B
C

// RUN: clang -emit-llvm %s -o - | grep 'cttz' | count 2 &&
// RUN: clang -emit-llvm %s -o - | grep 'ctlz' | count 2
int a(int a) {return __builtin_ctz(a) + __builtin_clz(a);}