1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

I misled Alkis: LLVM should have isnan, not isunordered.

isunordered(X, Y) === isnan(X) | isnan(Y)

Remove isunordered, add isnan.

Modernize testcase

llvm-svn: 14133
This commit is contained in:
Chris Lattner 2004-06-11 02:29:57 +00:00
parent b07bf147cd
commit 145f2e2936

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
}