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

Unified Diff: test/cctest/test-assembler-arm.cc

Issue 1372133006: Fix unwanted float-to-double-promotions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « test/cctest/compiler/test-run-machops.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-assembler-arm.cc
diff --git a/test/cctest/test-assembler-arm.cc b/test/cctest/test-assembler-arm.cc
index 8f93150fad8ee33f4f298062273918cadb0ba04c..4ab118380fe5a921098f7e0b6b95d6733d285b8a 100644
--- a/test/cctest/test-assembler-arm.cc
+++ b/test/cctest/test-assembler-arm.cc
@@ -337,8 +337,8 @@ TEST(4) {
t.y = 9.0;
Object* dummy = CALL_GENERATED_CODE(f, &t, 0, 0, 0, 0);
USE(dummy);
- CHECK_EQ(4.5, t.y);
- CHECK_EQ(9.0, t.x);
+ CHECK_EQ(4.5f, t.y);
+ CHECK_EQ(9.0f, t.x);
CHECK_EQ(-123.456, t.n);
CHECK_EQ(2718.2818, t.m);
CHECK_EQ(2, t.i);
@@ -704,14 +704,14 @@ TEST(8) {
CHECK_EQ(5.5, d.g);
CHECK_EQ(6.6, d.h);
- CHECK_EQ(7.0, f.a);
- CHECK_EQ(8.0, f.b);
- CHECK_EQ(1.0, f.c);
- CHECK_EQ(2.0, f.d);
- CHECK_EQ(3.0, f.e);
- CHECK_EQ(4.0, f.f);
- CHECK_EQ(5.0, f.g);
- CHECK_EQ(6.0, f.h);
+ CHECK_EQ(7.0f, f.a);
+ CHECK_EQ(8.0f, f.b);
+ CHECK_EQ(1.0f, f.c);
+ CHECK_EQ(2.0f, f.d);
+ CHECK_EQ(3.0f, f.e);
+ CHECK_EQ(4.0f, f.f);
+ CHECK_EQ(5.0f, f.g);
+ CHECK_EQ(6.0f, f.h);
}
@@ -814,14 +814,14 @@ TEST(9) {
CHECK_EQ(5.5, d.g);
CHECK_EQ(6.6, d.h);
- CHECK_EQ(7.0, f.a);
- CHECK_EQ(8.0, f.b);
- CHECK_EQ(1.0, f.c);
- CHECK_EQ(2.0, f.d);
- CHECK_EQ(3.0, f.e);
- CHECK_EQ(4.0, f.f);
- CHECK_EQ(5.0, f.g);
- CHECK_EQ(6.0, f.h);
+ CHECK_EQ(7.0f, f.a);
+ CHECK_EQ(8.0f, f.b);
+ CHECK_EQ(1.0f, f.c);
+ CHECK_EQ(2.0f, f.d);
+ CHECK_EQ(3.0f, f.e);
+ CHECK_EQ(4.0f, f.f);
+ CHECK_EQ(5.0f, f.g);
+ CHECK_EQ(6.0f, f.h);
}
@@ -920,14 +920,14 @@ TEST(10) {
CHECK_EQ(5.5, d.g);
CHECK_EQ(6.6, d.h);
- CHECK_EQ(7.0, f.a);
- CHECK_EQ(8.0, f.b);
- CHECK_EQ(1.0, f.c);
- CHECK_EQ(2.0, f.d);
- CHECK_EQ(3.0, f.e);
- CHECK_EQ(4.0, f.f);
- CHECK_EQ(5.0, f.g);
- CHECK_EQ(6.0, f.h);
+ CHECK_EQ(7.0f, f.a);
+ CHECK_EQ(8.0f, f.b);
+ CHECK_EQ(1.0f, f.c);
+ CHECK_EQ(2.0f, f.d);
+ CHECK_EQ(3.0f, f.e);
+ CHECK_EQ(4.0f, f.f);
+ CHECK_EQ(5.0f, f.g);
+ CHECK_EQ(6.0f, f.h);
}
« no previous file with comments | « test/cctest/compiler/test-run-machops.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698