summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-05-03 16:49:48 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-05-03 16:49:48 +0000
commitbf50ff58ae1f27863b8d90784320c0fb87ed5231 (patch)
tree96c74fba39c21770596a9ddd86b8bedd1859dc5b
parentc22333348e6fd9657557ffe1b94372ba5fd993e0 (diff)
downloadbcm5719-llvm-bf50ff58ae1f27863b8d90784320c0fb87ed5231.tar.gz
bcm5719-llvm-bf50ff58ae1f27863b8d90784320c0fb87ed5231.zip
pre add count tests
llvm-svn: 21671
-rw-r--r--llvm/test/Feature/intrinsics.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Feature/intrinsics.ll b/llvm/test/Feature/intrinsics.ll
index 251b9d1dcd0..76cef515287 100644
--- a/llvm/test/Feature/intrinsics.ll
+++ b/llvm/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
}
OpenPOWER on IntegriCloud