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

Side by Side Diff: test/unittests/compiler/mips/instruction-selector-mips-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
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", kMipsCmpD, 43 {{&RawMachineAssembler::Float64Equal, "Float64Equal", kMipsCmpD,
44 kMachFloat64}, 44 kMachFloat64},
45 kUnorderedEqual}, 45 kEqual},
46 {{&RawMachineAssembler::Float64LessThan, "Float64LessThan", kMipsCmpD, 46 {{&RawMachineAssembler::Float64LessThan, "Float64LessThan", kMipsCmpD,
47 kMachFloat64}, 47 kMachFloat64},
48 kUnorderedLessThan}, 48 kUnsignedLessThan},
49 {{&RawMachineAssembler::Float64LessThanOrEqual, "Float64LessThanOrEqual", 49 {{&RawMachineAssembler::Float64LessThanOrEqual, "Float64LessThanOrEqual",
50 kMipsCmpD, kMachFloat64}, 50 kMipsCmpD, kMachFloat64},
51 kUnorderedLessThanOrEqual}, 51 kUnsignedLessThanOrEqual},
52 {{&RawMachineAssembler::Float64GreaterThan, "Float64GreaterThan", kMipsCmpD, 52 {{&RawMachineAssembler::Float64GreaterThan, "Float64GreaterThan", kMipsCmpD,
53 kMachFloat64}, 53 kMachFloat64},
54 kUnorderedLessThan}, 54 kUnsignedLessThan},
55 {{&RawMachineAssembler::Float64GreaterThanOrEqual, 55 {{&RawMachineAssembler::Float64GreaterThanOrEqual,
56 "Float64GreaterThanOrEqual", kMipsCmpD, kMachFloat64}, 56 "Float64GreaterThanOrEqual", kMipsCmpD, 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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 ASSERT_EQ(2U, s[0]->InputCount()); 796 ASSERT_EQ(2U, s[0]->InputCount());
797 EXPECT_EQ(1U, s[0]->OutputCount()); 797 EXPECT_EQ(1U, s[0]->OutputCount());
798 EXPECT_EQ(kFlags_set, s[0]->flags_mode()); 798 EXPECT_EQ(kFlags_set, s[0]->flags_mode());
799 EXPECT_EQ(kEqual, s[0]->flags_condition()); 799 EXPECT_EQ(kEqual, s[0]->flags_condition());
800 } 800 }
801 } 801 }
802 802
803 } // namespace compiler 803 } // namespace compiler
804 } // namespace internal 804 } // namespace internal
805 } // namespace v8 805 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698