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

Side by Side Diff: src/compiler/mips64/instruction-selector-mips64.cc

Issue 980073003: MIPS: [turbofan] Support for %_DoubleHi, %_DoubleLo and %_ConstructDouble. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix shifts. Created 5 years, 9 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 | « src/compiler/mips64/instruction-codes-mips64.h ('k') | src/mips/macro-assembler-mips.h » ('j') | 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/base/bits.h" 5 #include "src/base/bits.h"
6 #include "src/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 VisitFloat64Compare(this, node, &cont); 1130 VisitFloat64Compare(this, node, &cont);
1131 } 1131 }
1132 1132
1133 1133
1134 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { 1134 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) {
1135 FlagsContinuation cont(kUnsignedLessThanOrEqual, node); 1135 FlagsContinuation cont(kUnsignedLessThanOrEqual, node);
1136 VisitFloat64Compare(this, node, &cont); 1136 VisitFloat64Compare(this, node, &cont);
1137 } 1137 }
1138 1138
1139 1139
1140 void InstructionSelector::VisitFloat64ExtractLowWord32(Node* node) {
1141 Mips64OperandGenerator g(this);
1142 Emit(kMips64FmoveLowUwD, g.DefineAsRegister(node),
1143 g.UseRegister(node->InputAt(0)));
1144 }
1145
1146
1147 void InstructionSelector::VisitFloat64ExtractHighWord32(Node* node) {
1148 Mips64OperandGenerator g(this);
1149 Emit(kMips64FmoveHighUwD, g.DefineAsRegister(node),
1150 g.UseRegister(node->InputAt(0)));
1151 }
1152
1153
1154 void InstructionSelector::VisitFloat64InsertLowWord32(Node* node) {
1155 Mips64OperandGenerator g(this);
1156 Node* left = node->InputAt(0);
1157 Node* right = node->InputAt(1);
1158 Emit(kMips64FmoveLowDUw, g.DefineSameAsFirst(node), g.UseRegister(left),
1159 g.UseRegister(right));
1160 }
1161
1162
1163 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) {
1164 Mips64OperandGenerator g(this);
1165 Node* left = node->InputAt(0);
1166 Node* right = node->InputAt(1);
1167 Emit(kMips64FmoveHighDUw, g.DefineSameAsFirst(node), g.UseRegister(left),
1168 g.UseRegister(right));
1169 }
1170
1171
1140 // static 1172 // static
1141 MachineOperatorBuilder::Flags 1173 MachineOperatorBuilder::Flags
1142 InstructionSelector::SupportedMachineOperatorFlags() { 1174 InstructionSelector::SupportedMachineOperatorFlags() {
1143 return MachineOperatorBuilder::kFloat64Floor | 1175 return MachineOperatorBuilder::kFloat64Floor |
1144 MachineOperatorBuilder::kFloat64Ceil | 1176 MachineOperatorBuilder::kFloat64Ceil |
1145 MachineOperatorBuilder::kFloat64RoundTruncate; 1177 MachineOperatorBuilder::kFloat64RoundTruncate;
1146 } 1178 }
1147 1179
1148 } // namespace compiler 1180 } // namespace compiler
1149 } // namespace internal 1181 } // namespace internal
1150 } // namespace v8 1182 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips64/instruction-codes-mips64.h ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698