Index: test/cctest/test-assembler-arm.cc |
diff --git a/test/cctest/test-assembler-arm.cc b/test/cctest/test-assembler-arm.cc |
index 9c1c04fe338f52ad478bd61ec306736c5c39ed46..986e4597a490e652014a77fb48cf19daeb8734c6 100644 |
--- a/test/cctest/test-assembler-arm.cc |
+++ b/test/cctest/test-assembler-arm.cc |
@@ -229,6 +229,7 @@ TEST(4) { |
double h; |
int i; |
double j; |
+ unsigned int k; |
double m; |
double n; |
float x; |
@@ -292,11 +293,16 @@ TEST(4) { |
__ vstr(d4, r4, OFFSET_OF(T, f)); |
// Convert from fixed point to floating point. |
- __ mov(lr, Operand(1234)); |
+ __ mov(lr, Operand(2468)); |
__ vmov(s8, lr); |
- __ vcvt_f64_s32(d4, 1); |
+ __ vcvt_f64_s32(d4, 2); |
__ vstr(d4, r4, OFFSET_OF(T, j)); |
+ // Convert from floating point to fixed point. |
+ __ vmov(d4, 42.25); |
+ __ vcvt_u32_f64(d4, 3); |
+ __ vstr(d4, r4, OFFSET_OF(T, k)); |
+ |
// Test vabs. |
__ vldr(d1, r4, OFFSET_OF(T, g)); |
__ vabs(d0, d1); |
@@ -336,6 +342,7 @@ TEST(4) { |
t.h = 31415926.5; |
t.i = 0; |
t.j = 0; |
+ t.k = 0; |
t.m = -2718.2818; |
t.n = 123.456; |
t.x = 4.5; |
@@ -350,6 +357,7 @@ TEST(4) { |
CHECK_EQ(2718.2818, t.g); |
CHECK_EQ(31415926.5, t.h); |
CHECK_EQ(617.0, t.j); |
+ CHECK_EQ(338, t.k); |
CHECK_EQ(42.0, t.f); |
CHECK_EQ(1.0, t.e); |
CHECK_EQ(1.000000059604644775390625, t.d); |