mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
bc5b5ded4e
llvm-svn: 20379
21 lines
516 B
LLVM
21 lines
516 B
LLVM
; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
|
|
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
|
|
; RUN: diff %t1.ll %t2.ll
|
|
|
|
|
|
declare bool %llvm.isunordered(float, float)
|
|
declare bool %llvm.isunordered(double, double)
|
|
|
|
declare void %llvm.prefetch(sbyte*, uint, uint)
|
|
|
|
implementation
|
|
|
|
; Test llvm intrinsics
|
|
;
|
|
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)
|
|
ret void
|
|
}
|