Chromium Code Reviews| Index: src/arm/code-stubs-arm.cc |
| =================================================================== |
| --- src/arm/code-stubs-arm.cc (revision 5989) |
| +++ src/arm/code-stubs-arm.cc (working copy) |
| @@ -2273,15 +2273,16 @@ |
| char* elem_in0 = reinterpret_cast<char*>(&(test_elem[0].in[0])); |
| char* elem_in1 = reinterpret_cast<char*>(&(test_elem[0].in[1])); |
| char* elem_out = reinterpret_cast<char*>(&(test_elem[0].output)); |
| - CHECK_EQ(12, elem2_start - elem_start); // Two uint_32's and a pointer. |
| + // Two uint_32's, a pointer, and an untagged double. |
|
Erik Corry
2010/12/13 20:26:13
Not your error, but the type is called uint32_t.
|
| + CHECK_EQ(20, elem2_start - elem_start); |
| CHECK_EQ(0, elem_in0 - elem_start); |
| CHECK_EQ(kIntSize, elem_in1 - elem_start); |
| CHECK_EQ(2 * kIntSize, elem_out - elem_start); |
| } |
| #endif |
| - // Find the address of the r1'st entry in the cache, i.e., &r0[r1*12]. |
| - __ add(r1, r1, Operand(r1, LSL, 1)); |
| + // Find the address of the r1'st entry in the cache, i.e., &r0[r1*20]. |
| + __ add(r1, r1, Operand(r1, LSL, 2)); |
| __ add(r0, r0, Operand(r1, LSL, 2)); |
| // Check if cache matches: Double value is stored in uint32_t[2] array. |
| __ ldm(ia, r0, r4.bit()| r5.bit() | r6.bit()); |