Index: test/cctest/test-assembler-arm.cc |
=================================================================== |
--- test/cctest/test-assembler-arm.cc (revision 6524) |
+++ test/cctest/test-assembler-arm.cc (working copy) |
@@ -229,6 +229,8 @@ |
double d; |
double e; |
double f; |
+ double g; |
+ double h; |
int i; |
float x; |
float y; |
@@ -286,6 +288,15 @@ |
__ vmov(s31, lr); |
__ vcvt_f64_s32(d4, s31); |
__ vstr(d4, r4, OFFSET_OF(T, f)); |
+ |
+ // Test vabs. |
+ __ vldr(d1, r4, OFFSET_OF(T, g)); |
+ __ vabs(d0, d1); |
+ __ vstr(d0, r4, OFFSET_OF(T, g)); |
+ __ vldr(d2, r4, OFFSET_OF(T, h)); |
+ __ vabs(d0, d2); |
+ __ vstr(d0, r4, OFFSET_OF(T, h)); |
+ |
__ ldm(ia_w, sp, r4.bit() | fp.bit() | pc.bit()); |
CodeDesc desc; |
@@ -305,6 +316,8 @@ |
t.d = 0.0; |
t.e = 0.0; |
t.f = 0.0; |
+ t.g = -2718.2818; |
+ t.h = 31415926.5; |
t.i = 0; |
t.x = 4.5; |
t.y = 9.0; |
@@ -313,6 +326,8 @@ |
CHECK_EQ(4.5, t.y); |
CHECK_EQ(9.0, t.x); |
CHECK_EQ(2, t.i); |
+ CHECK_EQ(2718.2818, t.g); |
+ CHECK_EQ(31415926.5, t.h); |
CHECK_EQ(42.0, t.f); |
CHECK_EQ(1.0, t.e); |
CHECK_EQ(1.000000059604644775390625, t.d); |