summaryrefslogtreecommitdiff
path: root/test/FrontendC/2007-08-22-CTTZ.c
blob: 9e74f24cdcb8ae00fd228ce9213731632ba64c41 (plain)
1
2
3
4
5
6
// RUN: %llvmgcc -O2 -S -o - %s | grep {llvm.cttz.i64} | count 2
// RUN: %llvmgcc -O2 -S -o - %s | not grep {lshr}

int bork(unsigned long long x) {
  return __builtin_ctzll(x);
}