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

Unified Diff: test/cctest/test-simd.cc

Issue 1250733005: SIMD.js Add the other SIMD Phase 1 types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
Index: test/cctest/test-simd.cc
diff --git a/test/cctest/test-simd.cc b/test/cctest/test-simd.cc
index e87032df8f9640520655f5fba2d572c241f2642c..eb2e85dbbfe6c6a380c1cdad543cc612206b7f22 100644
--- a/test/cctest/test-simd.cc
+++ b/test/cctest/test-simd.cc
@@ -19,9 +19,9 @@ TEST(SameValue) {
HandleScope sc(isolate);
float nan = std::numeric_limits<float>::quiet_NaN();
-
- Handle<Float32x4> a = factory->NewFloat32x4(0, 0, 0, 0);
- Handle<Float32x4> b = factory->NewFloat32x4(0, 0, 0, 0);
+ float lanes[4] = {0, 0, 0, 0};
+ Handle<Float32x4> a = factory->NewFloat32x4(lanes);
+ Handle<Float32x4> b = factory->NewFloat32x4(lanes);
CHECK(a->SameValue(*b));
for (int i = 0; i < 4; i++) {
a->set_lane(i, nan);

Powered by Google App Engine
This is Rietveld 408576698