summaryrefslogtreecommitdiff
path: root/test/CodeGen/2007-08-22-CTTZ.c
blob: 9067c5a767e3ea308390a41620c7d1664e398274 (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s

int bork(unsigned long long x) {
  // CHECK: llvm.cttz.i64
  // CHECK: llvm.cttz.i64
  // CHECK-NOT: lshr
  return __builtin_ctzll(x);
}