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

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

Issue 19560003: [v8-dev] ARM: Make double registers low/high safe (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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-assembler-arm.cc
diff --git a/test/cctest/test-assembler-arm.cc b/test/cctest/test-assembler-arm.cc
index c79e74019ec0eeacaed2b3c219310777eda97de4..cb677b3bb6b99c43082b728ca7a0055e0f9d175c 100644
--- a/test/cctest/test-assembler-arm.cc
+++ b/test/cctest/test-assembler-arm.cc
@@ -1049,6 +1049,8 @@ TEST(13) {
double i;
double j;
double k;
+ uint32_t low;
+ uint32_t high;
} T;
T t;
@@ -1113,6 +1115,11 @@ TEST(13) {
__ vmov(d22, VmovIndexHi, r2);
__ add(r4, r0, Operand(OFFSET_OF(T, i)));
__ vstm(ia_w, r4, d20, d22);
+ // Move d22 into low and high.
+ __ vmov(r4, VmovIndexLo, d22);
+ __ str(r4, MemOperand(r0, OFFSET_OF(T, low)));
+ __ vmov(r4, VmovIndexHi, d22);
+ __ str(r4, MemOperand(r0, OFFSET_OF(T, high)));
__ ldm(ia_w, sp, r4.bit() | pc.bit());
@@ -1144,6 +1151,8 @@ TEST(13) {
CHECK_EQ(14.7610017472335499, t.i);
CHECK_EQ(16.0, t.j);
CHECK_EQ(73.8818412254460241, t.k);
+ CHECK_EQ(372106121, t.low);
+ CHECK_EQ(1079146608, t.high);
}
}

Powered by Google App Engine
This is Rietveld 408576698