
declare bool %llvm.isnan(float)
declare bool %llvm.isnan(double)

declare bool %llvm.isunordered(float, float)
declare bool %llvm.isunordered(double, double)

implementation

; Test llvm intrinsics
;
void %libm() {
	call bool %llvm.isnan(float 0.0)
	call bool %llvm.isnan(double 10.0)
        call bool %llvm.isunordered(float 0.0, float 1.0)
        call bool %llvm.isunordered(double 0.0, double 1.0)
	ret void
}


declare bool %llvm.isunordered(float, float)
declare bool %llvm.isunordered(double, double)

implementation

; Test llvm intrinsics
;
void %libm() {
        call bool %llvm.isunordered(float 0.0, float 1.0)
        call bool %llvm.isunordered(double 0.0, double double 0x7FF8000000000000)
	ret void
}

Add a nan, stop testing isnan
Add a nan, stop testing isnan


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@14183 91177308-0d34-0410-b5e6-96231b3b80d8
