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
This commit is contained in:
Chris Lattner 2004-06-11 02:29:57 +00:00
parent 137cc4fc8c
commit 86ee776681

View File

@ -1,12 +1,13 @@
declare bool "llvm.isunordered"(float, float)
declare bool %llvm.isnan(float)
declare bool %llvm.isnan(double)
implementation
; Test llvm intrinsics
;
void "void"(int, int)
begin
%c = call bool %llvm.isunordered(float 0.0, float 1.0)
void %libm() {
call bool %llvm.isnan(float 0.0)
call bool %llvm.isnan(double 10.0)
ret void
end
}