]>
git.proxmox.com Git - rustc.git/blob - src/llvm/tools/clang/test/CodeGen/lzcnt-builtins.c
1 // RUN: %clang_cc1 %s -O3 -triple=x86_64-apple-darwin -target-feature +lzcnt -emit-llvm -o - | FileCheck %s
3 // Don't include mm_malloc.h, it's system specific.
8 unsigned short test__lzcnt16(unsigned short __X
)
10 // CHECK: @llvm.ctlz.i16
11 return __lzcnt16(__X
);
14 unsigned int test_lzcnt32(unsigned int __X
)
16 // CHECK: @llvm.ctlz.i32
17 return __lzcnt32(__X
);
20 unsigned long long test__lzcnt64(unsigned long long __X
)
22 // CHECK: @llvm.ctlz.i64
23 return __lzcnt64(__X
);