Index: test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc |
diff --git a/src/compiler/arm64/instruction-selector-arm64-unittest.cc b/test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc |
similarity index 97% |
rename from src/compiler/arm64/instruction-selector-arm64-unittest.cc |
rename to test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc |
index 73c5d8dce1141f4ccb77cb9c666928cd4c3b1251..79cf6aae4bd68edd36f7954a758fa1c798f90ee5 100644 |
--- a/src/compiler/arm64/instruction-selector-arm64-unittest.cc |
+++ b/test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc |
@@ -2,9 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include <list> |
- |
-#include "src/compiler/instruction-selector-unittest.h" |
+#include "test/unittests/compiler/instruction-selector-unittest.h" |
namespace v8 { |
namespace internal { |
@@ -1003,36 +1001,56 @@ std::ostream& operator<<(std::ostream& os, const MemoryAccess& memacc) { |
static const MemoryAccess kMemoryAccesses[] = { |
- {kMachInt8, kArm64Ldrsb, kArm64Strb, |
- {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 257, 258, 1000, 1001, |
- 2121, 2442, 4093, 4094, 4095}}, |
- {kMachUint8, kArm64Ldrb, kArm64Strb, |
- {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 257, 258, 1000, 1001, |
- 2121, 2442, 4093, 4094, 4095}}, |
- {kMachInt16, kArm64Ldrsh, kArm64Strh, |
- {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 258, 260, 4096, 4098, |
- 4100, 4242, 6786, 8188, 8190}}, |
- {kMachUint16, kArm64Ldrh, kArm64Strh, |
- {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 258, 260, 4096, 4098, |
- 4100, 4242, 6786, 8188, 8190}}, |
- {kMachInt32, kArm64LdrW, kArm64StrW, |
- {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 260, 4096, 4100, 8192, |
- 8196, 3276, 3280, 16376, 16380}}, |
- {kMachUint32, kArm64LdrW, kArm64StrW, |
- {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 260, 4096, 4100, 8192, |
- 8196, 3276, 3280, 16376, 16380}}, |
- {kMachInt64, kArm64Ldr, kArm64Str, |
- {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 264, 4096, 4104, 8192, |
- 8200, 16384, 16392, 32752, 32760}}, |
- {kMachUint64, kArm64Ldr, kArm64Str, |
- {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 264, 4096, 4104, 8192, |
- 8200, 16384, 16392, 32752, 32760}}, |
- {kMachFloat32, kArm64LdrS, kArm64StrS, |
- {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 260, 4096, 4100, 8192, |
- 8196, 3276, 3280, 16376, 16380}}, |
- {kMachFloat64, kArm64LdrD, kArm64StrD, |
- {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 264, 4096, 4104, 8192, |
- 8200, 16384, 16392, 32752, 32760}}}; |
+ {kMachInt8, |
+ kArm64Ldrsb, |
+ kArm64Strb, |
+ {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 257, 258, 1000, 1001, 2121, |
+ 2442, 4093, 4094, 4095}}, |
+ {kMachUint8, |
+ kArm64Ldrb, |
+ kArm64Strb, |
+ {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 257, 258, 1000, 1001, 2121, |
+ 2442, 4093, 4094, 4095}}, |
+ {kMachInt16, |
+ kArm64Ldrsh, |
+ kArm64Strh, |
+ {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 258, 260, 4096, 4098, 4100, |
+ 4242, 6786, 8188, 8190}}, |
+ {kMachUint16, |
+ kArm64Ldrh, |
+ kArm64Strh, |
+ {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 258, 260, 4096, 4098, 4100, |
+ 4242, 6786, 8188, 8190}}, |
+ {kMachInt32, |
+ kArm64LdrW, |
+ kArm64StrW, |
+ {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 260, 4096, 4100, 8192, 8196, |
+ 3276, 3280, 16376, 16380}}, |
+ {kMachUint32, |
+ kArm64LdrW, |
+ kArm64StrW, |
+ {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 260, 4096, 4100, 8192, 8196, |
+ 3276, 3280, 16376, 16380}}, |
+ {kMachInt64, |
+ kArm64Ldr, |
+ kArm64Str, |
+ {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 264, 4096, 4104, 8192, 8200, |
+ 16384, 16392, 32752, 32760}}, |
+ {kMachUint64, |
+ kArm64Ldr, |
+ kArm64Str, |
+ {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 264, 4096, 4104, 8192, 8200, |
+ 16384, 16392, 32752, 32760}}, |
+ {kMachFloat32, |
+ kArm64LdrS, |
+ kArm64StrS, |
+ {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 260, 4096, 4100, 8192, 8196, |
+ 3276, 3280, 16376, 16380}}, |
+ {kMachFloat64, |
+ kArm64LdrD, |
+ kArm64StrD, |
+ {-256, -255, -3, -2, -1, 0, 1, 2, 3, 255, 256, 264, 4096, 4104, 8192, 8200, |
+ 16384, 16392, 32752, 32760}}}; |
typedef InstructionSelectorTestWithParam<MemoryAccess> |