Pull out this predicate loop into a helper function.
[oota-llvm.git] / test / FrontendC / 2007-08-22-CTTZ.c
1 // RUN: %llvmgcc -O2 -S -o - %s | grep {llvm.cttz.i64} | count 2
2 // RUN: %llvmgcc -O2 -S -o - %s | not grep {lshr}
3
4 int bork(unsigned long long x) {
5   return __builtin_ctzll(x);
6 }