Add support for OR/XOR/SUB immediates that are handled with the new immediate
[oota-llvm.git] / test / Feature / intrinsics.ll
index 251b9d1dcd0f68c185d6a5377b5cf7f39ebea743..973e82f860d4f8f6a7e3861cdcb7417d0fc53d95 100644 (file)
@@ -8,6 +8,10 @@ declare bool %llvm.isunordered(double, double)
 
 declare void %llvm.prefetch(sbyte*, uint, uint)
 
+declare uint %llvm.ctpop(uint)
+declare ushort %llvm.cttz(ushort)
+declare ulong %llvm.ctlz(ulong)
+
 implementation
 
 ; Test llvm intrinsics
@@ -16,5 +20,10 @@ 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
 }
+
+; FIXME: test ALL the intrinsics in this file.