| 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 "src/compiler/machine-operator.h" | 5 #include "src/compiler/machine-operator.h" |
| 6 #include "src/compiler/opcodes.h" | 6 #include "src/compiler/opcodes.h" |
| 7 #include "src/compiler/operator.h" | 7 #include "src/compiler/operator.h" |
| 8 #include "src/compiler/operator-properties.h" | 8 #include "src/compiler/operator-properties.h" |
| 9 #include "test/unittests/test-utils.h" | 9 #include "test/unittests/test-utils.h" |
| 10 | 10 |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 &MachineOperatorBuilder::Name, MachineOperatorBuilder::k##Name, #Name, \ | 320 &MachineOperatorBuilder::Name, MachineOperatorBuilder::k##Name, #Name, \ |
| 321 value_input_count, control_input_count, value_output_count \ | 321 value_input_count, control_input_count, value_output_count \ |
| 322 } | 322 } |
| 323 OPTIONAL_ENTRY(Float32Max, 2, 0, 1), // -- | 323 OPTIONAL_ENTRY(Float32Max, 2, 0, 1), // -- |
| 324 OPTIONAL_ENTRY(Float32Min, 2, 0, 1), // -- | 324 OPTIONAL_ENTRY(Float32Min, 2, 0, 1), // -- |
| 325 OPTIONAL_ENTRY(Float64Max, 2, 0, 1), // -- | 325 OPTIONAL_ENTRY(Float64Max, 2, 0, 1), // -- |
| 326 OPTIONAL_ENTRY(Float64Min, 2, 0, 1), // -- | 326 OPTIONAL_ENTRY(Float64Min, 2, 0, 1), // -- |
| 327 OPTIONAL_ENTRY(Float64RoundDown, 1, 0, 1), // -- | 327 OPTIONAL_ENTRY(Float64RoundDown, 1, 0, 1), // -- |
| 328 OPTIONAL_ENTRY(Float64RoundTruncate, 1, 0, 1), // -- | 328 OPTIONAL_ENTRY(Float64RoundTruncate, 1, 0, 1), // -- |
| 329 OPTIONAL_ENTRY(Float64RoundTiesAway, 1, 0, 1), // -- | 329 OPTIONAL_ENTRY(Float64RoundTiesAway, 1, 0, 1), // -- |
| 330 OPTIONAL_ENTRY(Float32Neg, 1, 0, 1), // -- |
| 331 OPTIONAL_ENTRY(Float64Neg, 1, 0, 1), // -- |
| 330 #undef OPTIONAL_ENTRY | 332 #undef OPTIONAL_ENTRY |
| 331 }; | 333 }; |
| 332 } // namespace | 334 } // namespace |
| 333 | 335 |
| 334 | 336 |
| 335 class MachineOptionalOperatorTest : public TestWithZone { | 337 class MachineOptionalOperatorTest : public TestWithZone { |
| 336 protected: | 338 protected: |
| 337 MachineRepresentation word_rep() { | 339 MachineRepresentation word_rep() { |
| 338 return MachineType::PointerRepresentation(); | 340 return MachineType::PointerRepresentation(); |
| 339 } | 341 } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 EXPECT_EQ(machine.Uint64Div(), machine.UintDiv()); | 415 EXPECT_EQ(machine.Uint64Div(), machine.UintDiv()); |
| 414 EXPECT_EQ(machine.Int64Mod(), machine.IntMod()); | 416 EXPECT_EQ(machine.Int64Mod(), machine.IntMod()); |
| 415 EXPECT_EQ(machine.Uint64Mod(), machine.UintMod()); | 417 EXPECT_EQ(machine.Uint64Mod(), machine.UintMod()); |
| 416 EXPECT_EQ(machine.Int64LessThan(), machine.IntLessThan()); | 418 EXPECT_EQ(machine.Int64LessThan(), machine.IntLessThan()); |
| 417 EXPECT_EQ(machine.Int64LessThanOrEqual(), machine.IntLessThanOrEqual()); | 419 EXPECT_EQ(machine.Int64LessThanOrEqual(), machine.IntLessThanOrEqual()); |
| 418 } | 420 } |
| 419 | 421 |
| 420 } // namespace compiler | 422 } // namespace compiler |
| 421 } // namespace internal | 423 } // namespace internal |
| 422 } // namespace v8 | 424 } // namespace v8 |
| OLD | NEW |