llvm-capstone/clang/test/CodeGen/2006-01-16-BitCountIntrinsicsUnsigned.c
Eric Christopher 85e5156598 Migrate most of the rest of test/FrontendC from llvm and migrate
most of them to FileCheck.

llvm-svn: 136159
2011-07-26 22:17:02 +00:00

13 lines
236 B
C

// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
unsigned t2(unsigned X) {
// CHECK: t2
// CHECK: llvm.ctlz.i32
return __builtin_clz(X);
}
int t1(int X) {
// CHECK: t1
// CHECK: llvm.ctlz.i32
return __builtin_clz(X);
}