llvm-6502/test/CFrontend/2007-08-22-CTTZ.c

7 lines
202 B
C
Raw Normal View History

// RUN: %llvmgcc -O2 -S -o - -emit-llvm %s | grep {llvm.cttz.i64} | count 1
// RUN: %llvmgcc -O2 -S -o - -emit-llvm %s | not grep {lshr}
int bork(unsigned long long x) {
return __builtin_ctzll(x);
}