[PATCH] [COMPILER-RT] Implement __addtf3 and __subtf3
Dmitri Gribenko
gribozavr at gmail.com
Thu Feb 20 02:46:10 PST 2014
Please just hardcode the expected results and compare them by using *integer* operations (or other runtime functions, if we have suitable ones).
================
Comment at: test/builtins/Unit/addtf3_test.c:43-44
@@ +42,4 @@
+#if defined(__SIZEOF_INT128__) && __SIZEOF_INT128__ == 16
+ // Since NaN can't be compared with NaN, we don't test the
+ // cases that produce NaN result
+
----------------
It can be. Just compare the binary representation.
http://llvm-reviews.chandlerc.com/D2798
More information about the llvm-commits
mailing list