llvm.org GIT mirror llvm / 86ee776
I misled Alkis: LLVM should have isnan, not isunordered. isunordered(X, Y) === isnan(X) | isnan(Y) Remove isunordered, add isnan. Modernize testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14133 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
1 changed file(s) with 7 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
None declare bool "llvm.isunordered"(float, float)
0
1 declare bool %llvm.isnan(float)
2 declare bool %llvm.isnan(double)
13
24 implementation
35
46 ; Test llvm intrinsics
57 ;
6 void "void"(int, int)
7 begin
8 %c = call bool %llvm.isunordered(float 0.0, float 1.0)
8 void %libm() {
9 call bool %llvm.isnan(float 0.0)
10 call bool %llvm.isnan(double 10.0)
911 ret void
10 end
11
12 }