2004-11-07 07:08:43 +01:00
|
|
|
; 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
|
|
|
|
|
2004-06-11 04:29:57 +02:00
|
|
|
|
2004-06-12 21:19:14 +02:00
|
|
|
declare bool %llvm.isunordered(float, float)
|
|
|
|
declare bool %llvm.isunordered(double, double)
|
|
|
|
|
2005-02-28 20:31:42 +01:00
|
|
|
declare void %llvm.prefetch(sbyte*, uint, uint)
|
|
|
|
|
2004-06-11 03:06:40 +02:00
|
|
|
implementation
|
|
|
|
|
|
|
|
; Test llvm intrinsics
|
|
|
|
;
|
2004-06-11 04:29:57 +02:00
|
|
|
void %libm() {
|
2004-06-12 21:19:14 +02:00
|
|
|
call bool %llvm.isunordered(float 0.0, float 1.0)
|
2004-06-15 23:29:40 +02:00
|
|
|
call bool %llvm.isunordered(double 0.0, double 0x7FF8000000000000)
|
2005-02-28 20:31:42 +01:00
|
|
|
call void %llvm.prefetch(sbyte* null, uint 1, uint 3)
|
2004-06-11 03:06:40 +02:00
|
|
|
ret void
|
2004-06-11 04:29:57 +02:00
|
|
|
}
|