summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/lzcnt-builtins.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/lzcnt-builtins.c')
-rw-r--r--test/CodeGen/lzcnt-builtins.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/lzcnt-builtins.c b/test/CodeGen/lzcnt-builtins.c
index a43c4ee..a083de9 100644
--- a/test/CodeGen/lzcnt-builtins.c
+++ b/test/CodeGen/lzcnt-builtins.c
@@ -22,3 +22,15 @@ unsigned long long test__lzcnt64(unsigned long long __X)
// CHECK: @llvm.ctlz.i64
return __lzcnt64(__X);
}
+
+unsigned int test_lzcnt_u32(unsigned int __X)
+{
+ // CHECK: @llvm.ctlz.i32
+ return _lzcnt_u32(__X);
+}
+
+unsigned long long test__lzcnt_u64(unsigned long long __X)
+{
+ // CHECK: @llvm.ctlz.i64
+ return _lzcnt_u64(__X);
+}
OpenPOWER on IntegriCloud