I misled Alkis: LLVM should have isnan, not isunordered.
authorChris Lattner <sabre@nondot.org>
Fri, 11 Jun 2004 02:29:57 +0000 (02:29 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 11 Jun 2004 02:29:57 +0000 (02:29 +0000)
  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

test/Feature/intrinsics.ll

index 17b935ebc9b50a09c011c0baf916dc5d14fa8e08..53a78b5417c4c495ec5927f3e3c00c6444d88579 100644 (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
-
+}