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

Unified Diff: crosstest/test_fcmp_main.cpp

Issue 639543002: Add cross test for vector itofp and fptoi casts. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: share more Created 6 years, 2 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_cast_vectors.ll ('k') | crosstest/test_select_main.cpp » ('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 f04b2e50f63966db493e71459391b20d0f8043b9..b15d91f5cea1c3e2f8468b5d8ac921d1f7e83de1 100644
--- a/crosstest/test_fcmp_main.cpp
+++ b/crosstest/test_fcmp_main.cpp
@@ -21,6 +21,7 @@
#include <iostream>
#include "vectors.h"
+#include "test_arith.def"
#include "test_fcmp.def"
#define X(cmp) \
@@ -39,7 +40,6 @@ size_t NumValues;
void initializeValues() {
static const double NegInf = -1.0 / 0.0;
static const double Zero = 0.0;
- 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;
@@ -50,9 +50,8 @@ void initializeValues() {
assert(NegInf < Zero);
assert(NegInf < PosInf);
assert(Zero < PosInf);
- static volatile double InitValues[] = {NegInf, -Zero, Zero, DBL_MIN,
- FLT_MIN, Ten, FLT_MAX, DBL_MAX,
- PosInf, Nan, NegNan};
+ static volatile double InitValues[] =
+ FP_VALUE_ARRAY(NegInf, PosInf, NegNan, Nan);
NumValues = sizeof(InitValues) / sizeof(*InitValues);
Values = InitValues;
}
« no previous file with comments | « crosstest/test_cast_vectors.ll ('k') | crosstest/test_select_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698