| 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/unittests/compiler/instruction-selector-unittest.h" | 5 #include "test/unittests/compiler/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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 ArchOpcode load_opcode; | 481 ArchOpcode load_opcode; |
| 482 ArchOpcode store_opcode; | 482 ArchOpcode store_opcode; |
| 483 }; | 483 }; |
| 484 | 484 |
| 485 static const MemoryAccess kMemoryAccesses[] = { | 485 static const MemoryAccess kMemoryAccesses[] = { |
| 486 {kMachInt8, kMips64Lb, kMips64Sb}, | 486 {kMachInt8, kMips64Lb, kMips64Sb}, |
| 487 {kMachUint8, kMips64Lbu, kMips64Sb}, | 487 {kMachUint8, kMips64Lbu, kMips64Sb}, |
| 488 {kMachInt16, kMips64Lh, kMips64Sh}, | 488 {kMachInt16, kMips64Lh, kMips64Sh}, |
| 489 {kMachUint16, kMips64Lhu, kMips64Sh}, | 489 {kMachUint16, kMips64Lhu, kMips64Sh}, |
| 490 {kMachInt32, kMips64Lw, kMips64Sw}, | 490 {kMachInt32, kMips64Lw, kMips64Sw}, |
| 491 {kRepFloat32, kMips64Lwc1, kMips64Swc1}, | 491 {kMachFloat32, kMips64Lwc1, kMips64Swc1}, |
| 492 {kRepFloat64, kMips64Ldc1, kMips64Sdc1}, | 492 {kMachFloat64, kMips64Ldc1, kMips64Sdc1}, |
| 493 {kMachInt64, kMips64Ld, kMips64Sd}}; | 493 {kMachInt64, kMips64Ld, kMips64Sd}}; |
| 494 | 494 |
| 495 | 495 |
| 496 struct MemoryAccessImm { | 496 struct MemoryAccessImm { |
| 497 MachineType type; | 497 MachineType type; |
| 498 ArchOpcode load_opcode; | 498 ArchOpcode load_opcode; |
| 499 ArchOpcode store_opcode; | 499 ArchOpcode store_opcode; |
| 500 bool (InstructionSelectorTest::Stream::*val_predicate)( | 500 bool (InstructionSelectorTest::Stream::*val_predicate)( |
| 501 const InstructionOperand*) const; | 501 const InstructionOperand*) const; |
| 502 const int32_t immediates[40]; | 502 const int32_t immediates[40]; |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 EXPECT_EQ(kMips64AbsD, s[0]->arch_opcode()); | 866 EXPECT_EQ(kMips64AbsD, s[0]->arch_opcode()); |
| 867 ASSERT_EQ(1U, s[0]->InputCount()); | 867 ASSERT_EQ(1U, s[0]->InputCount()); |
| 868 EXPECT_EQ(s.ToVreg(p0), s.ToVreg(s[0]->InputAt(0))); | 868 EXPECT_EQ(s.ToVreg(p0), s.ToVreg(s[0]->InputAt(0))); |
| 869 ASSERT_EQ(1U, s[0]->OutputCount()); | 869 ASSERT_EQ(1U, s[0]->OutputCount()); |
| 870 EXPECT_EQ(s.ToVreg(n), s.ToVreg(s[0]->Output())); | 870 EXPECT_EQ(s.ToVreg(n), s.ToVreg(s[0]->Output())); |
| 871 } | 871 } |
| 872 | 872 |
| 873 } // namespace compiler | 873 } // namespace compiler |
| 874 } // namespace internal | 874 } // namespace internal |
| 875 } // namespace v8 | 875 } // namespace v8 |
| OLD | NEW |