OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "test/compiler-unittests/instruction-selector-unittest.h" | 5 #include "test/compiler-unittests/instruction-selector-unittest.h" |
6 | 6 |
7 namespace v8 { | 7 namespace v8 { |
8 namespace internal { | 8 namespace internal { |
9 namespace compiler { | 9 namespace compiler { |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 static const MemoryAccess kMemoryAccesses[] = { | 61 static const MemoryAccess kMemoryAccesses[] = { |
62 {kMachInt8, kX64Movsxbl, kX64Movb}, | 62 {kMachInt8, kX64Movsxbl, kX64Movb}, |
63 {kMachUint8, kX64Movzxbl, kX64Movb}, | 63 {kMachUint8, kX64Movzxbl, kX64Movb}, |
64 {kMachInt16, kX64Movsxwl, kX64Movw}, | 64 {kMachInt16, kX64Movsxwl, kX64Movw}, |
65 {kMachUint16, kX64Movzxwl, kX64Movw}, | 65 {kMachUint16, kX64Movzxwl, kX64Movw}, |
66 {kMachInt32, kX64Movl, kX64Movl}, | 66 {kMachInt32, kX64Movl, kX64Movl}, |
67 {kMachUint32, kX64Movl, kX64Movl}, | 67 {kMachUint32, kX64Movl, kX64Movl}, |
68 {kMachInt64, kX64Movq, kX64Movq}, | 68 {kMachInt64, kX64Movq, kX64Movq}, |
69 {kMachUint64, kX64Movq, kX64Movq}, | 69 {kMachUint64, kX64Movq, kX64Movq}, |
| 70 {kMachFloat32, kX64Movss, kX64Movss}, |
70 {kMachFloat64, kX64Movsd, kX64Movsd}}; | 71 {kMachFloat64, kX64Movsd, kX64Movsd}}; |
71 | 72 |
72 } // namespace | 73 } // namespace |
73 | 74 |
74 | 75 |
75 typedef InstructionSelectorTestWithParam<MemoryAccess> | 76 typedef InstructionSelectorTestWithParam<MemoryAccess> |
76 InstructionSelectorMemoryAccessTest; | 77 InstructionSelectorMemoryAccessTest; |
77 | 78 |
78 | 79 |
79 TEST_P(InstructionSelectorMemoryAccessTest, LoadWithParameters) { | 80 TEST_P(InstructionSelectorMemoryAccessTest, LoadWithParameters) { |
(...skipping 21 matching lines...) Expand all Loading... |
101 } | 102 } |
102 | 103 |
103 | 104 |
104 INSTANTIATE_TEST_CASE_P(InstructionSelectorTest, | 105 INSTANTIATE_TEST_CASE_P(InstructionSelectorTest, |
105 InstructionSelectorMemoryAccessTest, | 106 InstructionSelectorMemoryAccessTest, |
106 ::testing::ValuesIn(kMemoryAccesses)); | 107 ::testing::ValuesIn(kMemoryAccesses)); |
107 | 108 |
108 } // namespace compiler | 109 } // namespace compiler |
109 } // namespace internal | 110 } // namespace internal |
110 } // namespace v8 | 111 } // namespace v8 |
OLD | NEW |