aboutsummaryrefslogtreecommitdiff
path: root/test/CFrontend/2007-08-22-CTTZ.c
blob: 8687a730666b9d45dfd9e5b070f85710ecefaff9 (plain)
1
2
3
4
5
6
// 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);
}