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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 } | 93 } |
94 | 94 |
95 | 95 |
96 static const MemoryAccess kMemoryAccesses[] = { | 96 static const MemoryAccess kMemoryAccesses[] = { |
97 {kMachInt8, kIA32Movsxbl, kIA32Movb}, | 97 {kMachInt8, kIA32Movsxbl, kIA32Movb}, |
98 {kMachUint8, kIA32Movzxbl, kIA32Movb}, | 98 {kMachUint8, kIA32Movzxbl, kIA32Movb}, |
99 {kMachInt16, kIA32Movsxwl, kIA32Movw}, | 99 {kMachInt16, kIA32Movsxwl, kIA32Movw}, |
100 {kMachUint16, kIA32Movzxwl, kIA32Movw}, | 100 {kMachUint16, kIA32Movzxwl, kIA32Movw}, |
101 {kMachInt32, kIA32Movl, kIA32Movl}, | 101 {kMachInt32, kIA32Movl, kIA32Movl}, |
102 {kMachUint32, kIA32Movl, kIA32Movl}, | 102 {kMachUint32, kIA32Movl, kIA32Movl}, |
| 103 {kMachFloat32, kIA32Movss, kIA32Movss}, |
103 {kMachFloat64, kIA32Movsd, kIA32Movsd}}; | 104 {kMachFloat64, kIA32Movsd, kIA32Movsd}}; |
104 | 105 |
105 } // namespace | 106 } // namespace |
106 | 107 |
107 | 108 |
108 typedef InstructionSelectorTestWithParam<MemoryAccess> | 109 typedef InstructionSelectorTestWithParam<MemoryAccess> |
109 InstructionSelectorMemoryAccessTest; | 110 InstructionSelectorMemoryAccessTest; |
110 | 111 |
111 | 112 |
112 TEST_P(InstructionSelectorMemoryAccessTest, LoadWithParameters) { | 113 TEST_P(InstructionSelectorMemoryAccessTest, LoadWithParameters) { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 } | 202 } |
202 | 203 |
203 | 204 |
204 INSTANTIATE_TEST_CASE_P(InstructionSelectorTest, | 205 INSTANTIATE_TEST_CASE_P(InstructionSelectorTest, |
205 InstructionSelectorMemoryAccessTest, | 206 InstructionSelectorMemoryAccessTest, |
206 ::testing::ValuesIn(kMemoryAccesses)); | 207 ::testing::ValuesIn(kMemoryAccesses)); |
207 | 208 |
208 } // namespace compiler | 209 } // namespace compiler |
209 } // namespace internal | 210 } // namespace internal |
210 } // namespace v8 | 211 } // namespace v8 |
OLD | NEW |