Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2350)

Unified Diff: crosstest/test_fcmp_main.cpp

Issue 384443003: Add scalar lowering for sqrt intrinsic. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: whitespace Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crosstest/test_arith_sqrt.ll ('k') | src/IceInstX8632.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/test_fcmp_main.cpp
diff --git a/crosstest/test_fcmp_main.cpp b/crosstest/test_fcmp_main.cpp
index 8677c48dfc7d753ef7ba2b41810cafd9a579de1e..0c98c0ada8ca3d3b344499f4c4a48bbc067f1a5d 100644
--- a/crosstest/test_fcmp_main.cpp
+++ b/crosstest/test_fcmp_main.cpp
@@ -22,15 +22,18 @@ int main(int argc, char **argv) {
static const double Ten = 10.0;
static const double PosInf = 1.0 / 0.0;
static const double Nan = 0.0 / 0.0;
+ static const double NegNan = -0.0 / 0.0;
assert(std::fpclassify(NegInf) == FP_INFINITE);
assert(std::fpclassify(PosInf) == FP_INFINITE);
assert(std::fpclassify(Nan) == FP_NAN);
+ assert(std::fpclassify(NegNan) == FP_NAN);
assert(NegInf < Zero);
assert(NegInf < PosInf);
assert(Zero < PosInf);
- volatile double Values[] = { NegInf, Zero, DBL_MIN, FLT_MIN, Ten,
- FLT_MAX, DBL_MAX, PosInf, Nan, };
+ volatile double Values[] = { NegInf, -Zero, Zero, DBL_MIN, FLT_MIN,
+ Ten, FLT_MAX, DBL_MAX, PosInf, Nan,
+ NegNan };
const static size_t NumValues = sizeof(Values) / sizeof(*Values);
typedef bool (*FuncTypeFloat)(float, float);
« no previous file with comments | « crosstest/test_arith_sqrt.ll ('k') | src/IceInstX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698