diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-05-03 16:49:48 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-05-03 16:49:48 +0000 |
commit | 279a7b21bbce36a0af0d30a424e86d4012d44030 (patch) | |
tree | 608bd894c2c571bdb1cee9ff99255dede2ac276b /test/Feature/intrinsics.ll | |
parent | f818cfe0969d74ca356f87947b651230fdad6ed0 (diff) | |
download | external_llvm-279a7b21bbce36a0af0d30a424e86d4012d44030.zip external_llvm-279a7b21bbce36a0af0d30a424e86d4012d44030.tar.gz external_llvm-279a7b21bbce36a0af0d30a424e86d4012d44030.tar.bz2 |
pre add count tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature/intrinsics.ll')
-rw-r--r-- | test/Feature/intrinsics.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Feature/intrinsics.ll b/test/Feature/intrinsics.ll index 251b9d1..76cef51 100644 --- a/test/Feature/intrinsics.ll +++ b/test/Feature/intrinsics.ll @@ -8,6 +8,10 @@ declare bool %llvm.isunordered(double, double) declare void %llvm.prefetch(sbyte*, uint, uint) +declare uint %llvm.ctpop.32(uint) +declare ushort %llvm.cttz.16(ushort) +declare ulong %llvm.ctlz.64(ulong) + implementation ; Test llvm intrinsics @@ -16,5 +20,8 @@ void %libm() { call bool %llvm.isunordered(float 0.0, float 1.0) call bool %llvm.isunordered(double 0.0, double 0x7FF8000000000000) call void %llvm.prefetch(sbyte* null, uint 1, uint 3) + call uint %llvm.ctpop(uint 3) + call ushort %llvm.cttz(ushort 7) + call ulong %llvm.ctlz(ulong 65000) ret void } |