mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Add a test for llvm.prefetch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20379 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
33e9d29b3b
commit
47adf21d06
@ -6,6 +6,8 @@
|
|||||||
declare bool %llvm.isunordered(float, float)
|
declare bool %llvm.isunordered(float, float)
|
||||||
declare bool %llvm.isunordered(double, double)
|
declare bool %llvm.isunordered(double, double)
|
||||||
|
|
||||||
|
declare void %llvm.prefetch(sbyte*, uint, uint)
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
; Test llvm intrinsics
|
; Test llvm intrinsics
|
||||||
@ -13,5 +15,6 @@ implementation
|
|||||||
void %libm() {
|
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)
|
||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user