1 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +lzcnt -emit-llvm -o - | FileCheck %s
6 unsigned short test__lzcnt16(unsigned short __X
)
8 // CHECK: @llvm.ctlz.i16(i16 %{{.*}}, i1 false)
12 unsigned int test_lzcnt32(unsigned int __X
)
14 // CHECK: @llvm.ctlz.i32(i32 %{{.*}}, i1 false)
15 return __lzcnt32(__X
);
18 unsigned long long test__lzcnt64(unsigned long long __X
)
20 // CHECK: @llvm.ctlz.i64(i64 %{{.*}}, i1 false)
21 return __lzcnt64(__X
);
24 unsigned int test_lzcnt_u32(unsigned int __X
)
26 // CHECK: @llvm.ctlz.i32(i32 %{{.*}}, i1 false)
27 return _lzcnt_u32(__X
);
30 unsigned long long test__lzcnt_u64(unsigned long long __X
)
32 // CHECK: @llvm.ctlz.i64(i64 %{{.*}}, i1 false)
33 return _lzcnt_u64(__X
);