blob: 251b9d1dcd0f68c185d6a5377b5cf7f39ebea743 [file] [log] [blame]
Tanya Lattner3f7706b2004-11-07 06:08:43 +00001; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
2; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3; RUN: diff %t1.ll %t2.ll
4
Chris Lattner86ee7762004-06-11 02:29:57 +00005
Alkis Evlogimenos96853722004-06-12 19:19:14 +00006declare bool %llvm.isunordered(float, float)
7declare bool %llvm.isunordered(double, double)
8
Chris Lattner47adf212005-02-28 19:31:42 +00009declare void %llvm.prefetch(sbyte*, uint, uint)
10
Alkis Evlogimenosfd39b302004-06-11 01:06:40 +000011implementation
12
13; Test llvm intrinsics
14;
Chris Lattner86ee7762004-06-11 02:29:57 +000015void %libm() {
Alkis Evlogimenos96853722004-06-12 19:19:14 +000016 call bool %llvm.isunordered(float 0.0, float 1.0)
Chris Lattner5e9a7ca2004-06-15 21:29:40 +000017 call bool %llvm.isunordered(double 0.0, double 0x7FF8000000000000)
Chris Lattner47adf212005-02-28 19:31:42 +000018 call void %llvm.prefetch(sbyte* null, uint 1, uint 3)
Alkis Evlogimenosfd39b302004-06-11 01:06:40 +000019 ret void
Chris Lattner86ee7762004-06-11 02:29:57 +000020}