[llvm-commits] CVS: llvm/test/Feature/intrinsics.ll
Chris Lattner
lattner at cs.uiuc.edu
Thu Jun 10 21:36:01 PDT 2004
Changes in directory llvm/test/Feature:
intrinsics.ll updated: 1.1 -> 1.2
---
Log message:
I misled Alkis: LLVM should have isnan, not isunordered.
isunordered(X, Y) === isnan(X) | isnan(Y)
Remove isunordered, add isnan.
Modernize testcase
---
Diffs of the changes: (+7 -6)
Index: llvm/test/Feature/intrinsics.ll
diff -u llvm/test/Feature/intrinsics.ll:1.1 llvm/test/Feature/intrinsics.ll:1.2
--- llvm/test/Feature/intrinsics.ll:1.1 Thu Jun 10 20:06:40 2004
+++ llvm/test/Feature/intrinsics.ll Thu Jun 10 21:29:57 2004
@@ -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
-
+}
More information about the llvm-commits
mailing list