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

Side by Side Diff: test/unittests/compiler/mips64/instruction-selector-mips64-unittest.cc

Issue 850733004: MIPS: [turbofan] Improve code generation for unordered comparisons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix switch cases. Created 5 years, 11 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/mips/instruction-selector-mips-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 "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 24 matching lines...) Expand all
35 }; 35 };
36 36
37 struct FPCmp { 37 struct FPCmp {
38 MachInst2 mi; 38 MachInst2 mi;
39 FlagsCondition cond; 39 FlagsCondition cond;
40 }; 40 };
41 41
42 const FPCmp kFPCmpInstructions[] = { 42 const FPCmp kFPCmpInstructions[] = {
43 {{&RawMachineAssembler::Float64Equal, "Float64Equal", kMips64CmpD, 43 {{&RawMachineAssembler::Float64Equal, "Float64Equal", kMips64CmpD,
44 kMachFloat64}, 44 kMachFloat64},
45 kUnorderedEqual}, 45 kEqual},
46 {{&RawMachineAssembler::Float64LessThan, "Float64LessThan", kMips64CmpD, 46 {{&RawMachineAssembler::Float64LessThan, "Float64LessThan", kMips64CmpD,
47 kMachFloat64}, 47 kMachFloat64},
48 kUnorderedLessThan}, 48 kUnsignedLessThan},
49 {{&RawMachineAssembler::Float64LessThanOrEqual, "Float64LessThanOrEqual", 49 {{&RawMachineAssembler::Float64LessThanOrEqual, "Float64LessThanOrEqual",
50 kMips64CmpD, kMachFloat64}, 50 kMips64CmpD, kMachFloat64},
51 kUnorderedLessThanOrEqual}, 51 kUnsignedLessThanOrEqual},
52 {{&RawMachineAssembler::Float64GreaterThan, "Float64GreaterThan", 52 {{&RawMachineAssembler::Float64GreaterThan, "Float64GreaterThan",
53 kMips64CmpD, kMachFloat64}, 53 kMips64CmpD, kMachFloat64},
54 kUnorderedLessThan}, 54 kUnsignedLessThan},
55 {{&RawMachineAssembler::Float64GreaterThanOrEqual, 55 {{&RawMachineAssembler::Float64GreaterThanOrEqual,
56 "Float64GreaterThanOrEqual", kMips64CmpD, kMachFloat64}, 56 "Float64GreaterThanOrEqual", kMips64CmpD, kMachFloat64},
57 kUnorderedLessThanOrEqual}}; 57 kUnsignedLessThanOrEqual}};
58 58
59 struct Conversion { 59 struct Conversion {
60 // The machine_type field in MachInst1 represents the destination type. 60 // The machine_type field in MachInst1 represents the destination type.
61 MachInst1 mi; 61 MachInst1 mi;
62 MachineType src_machine_type; 62 MachineType src_machine_type;
63 }; 63 };
64 64
65 65
66 // ---------------------------------------------------------------------------- 66 // ----------------------------------------------------------------------------
67 // Logical instructions. 67 // Logical instructions.
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 ASSERT_EQ(2U, s[0]->InputCount()); 798 ASSERT_EQ(2U, s[0]->InputCount());
799 EXPECT_EQ(1U, s[0]->OutputCount()); 799 EXPECT_EQ(1U, s[0]->OutputCount());
800 EXPECT_EQ(kFlags_set, s[0]->flags_mode()); 800 EXPECT_EQ(kFlags_set, s[0]->flags_mode());
801 EXPECT_EQ(kEqual, s[0]->flags_condition()); 801 EXPECT_EQ(kEqual, s[0]->flags_condition());
802 } 802 }
803 } 803 }
804 804
805 } // namespace compiler 805 } // namespace compiler
806 } // namespace internal 806 } // namespace internal
807 } // namespace v8 807 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/mips/instruction-selector-mips-unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698