Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: test/unittests/compiler/machine-operator-unittest.cc

Issue 2011303002: [arm] [arm64] Add optional operators Float32Neg and Float64Neg. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698