summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/builtin-count-zeros.c
blob: 26b139aa8c44d2dbb8a72d1e4c52f258b09cb50c (plain)
1
2
3
4
// 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);}
OpenPOWER on IntegriCloud