mirror of
https://github.com/RPCSX/llvm.git
synced 2025-05-13 10:56:01 +00:00
pre add count tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21671 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f818cfe096
commit
279a7b21bb
@ -8,6 +8,10 @@ declare bool %llvm.isunordered(double, double)
|
|||||||
|
|
||||||
declare void %llvm.prefetch(sbyte*, uint, uint)
|
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
|
implementation
|
||||||
|
|
||||||
; Test llvm intrinsics
|
; Test llvm intrinsics
|
||||||
@ -16,5 +20,8 @@ void %libm() {
|
|||||||
call bool %llvm.isunordered(float 0.0, float 1.0)
|
call bool %llvm.isunordered(float 0.0, float 1.0)
|
||||||
call bool %llvm.isunordered(double 0.0, double 0x7FF8000000000000)
|
call bool %llvm.isunordered(double 0.0, double 0x7FF8000000000000)
|
||||||
call void %llvm.prefetch(sbyte* null, uint 1, uint 3)
|
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
|
ret void
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user