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

Side by Side Diff: src/compiler/mips/code-generator-mips.cc

Issue 2569683002: MIPS[64]: Disable fusion multiple-accumulate instructions (Closed)
Patch Set: Created 4 years 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 | « no previous file | src/compiler/mips/instruction-codes-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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 #include "src/compilation-info.h" 6 #include "src/compilation-info.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 case kMipsAddD: 1145 case kMipsAddD:
1146 // TODO(plind): add special case: combine mult & add. 1146 // TODO(plind): add special case: combine mult & add.
1147 __ add_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 1147 __ add_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
1148 i.InputDoubleRegister(1)); 1148 i.InputDoubleRegister(1));
1149 break; 1149 break;
1150 case kMipsSubD: 1150 case kMipsSubD:
1151 __ sub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 1151 __ sub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
1152 i.InputDoubleRegister(1)); 1152 i.InputDoubleRegister(1));
1153 break; 1153 break;
1154 case kMipsMaddS: 1154 case kMipsMaddS:
1155 __ madd_s(i.OutputFloatRegister(), i.InputFloatRegister(0), 1155 __ Madd_s(i.OutputFloatRegister(), i.InputFloatRegister(0),
1156 i.InputFloatRegister(1), i.InputFloatRegister(2)); 1156 i.InputFloatRegister(1), i.InputFloatRegister(2),
1157 kScratchDoubleReg);
1157 break; 1158 break;
1158 case kMipsMaddD: 1159 case kMipsMaddD:
1159 __ madd_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 1160 __ Madd_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
1160 i.InputDoubleRegister(1), i.InputDoubleRegister(2)); 1161 i.InputDoubleRegister(1), i.InputDoubleRegister(2),
1161 break; 1162 kScratchDoubleReg);
1162 case kMipsMaddfS:
1163 __ maddf_s(i.OutputFloatRegister(), i.InputFloatRegister(1),
1164 i.InputFloatRegister(2));
1165 break;
1166 case kMipsMaddfD:
1167 __ maddf_d(i.OutputDoubleRegister(), i.InputDoubleRegister(1),
1168 i.InputDoubleRegister(2));
1169 break; 1163 break;
1170 case kMipsMsubS: 1164 case kMipsMsubS:
1171 __ msub_s(i.OutputFloatRegister(), i.InputFloatRegister(0), 1165 __ Msub_s(i.OutputFloatRegister(), i.InputFloatRegister(0),
1172 i.InputFloatRegister(1), i.InputFloatRegister(2)); 1166 i.InputFloatRegister(1), i.InputFloatRegister(2),
1167 kScratchDoubleReg);
1173 break; 1168 break;
1174 case kMipsMsubD: 1169 case kMipsMsubD:
1175 __ msub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 1170 __ Msub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
1176 i.InputDoubleRegister(1), i.InputDoubleRegister(2)); 1171 i.InputDoubleRegister(1), i.InputDoubleRegister(2),
1177 break; 1172 kScratchDoubleReg);
1178 case kMipsMsubfS:
1179 __ msubf_s(i.OutputFloatRegister(), i.InputFloatRegister(1),
1180 i.InputFloatRegister(2));
1181 break;
1182 case kMipsMsubfD:
1183 __ msubf_d(i.OutputDoubleRegister(), i.InputDoubleRegister(1),
1184 i.InputDoubleRegister(2));
1185 break; 1173 break;
1186 case kMipsMulD: 1174 case kMipsMulD:
1187 // TODO(plind): add special case: right op is -1.0, see arm port. 1175 // TODO(plind): add special case: right op is -1.0, see arm port.
1188 __ mul_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 1176 __ mul_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
1189 i.InputDoubleRegister(1)); 1177 i.InputDoubleRegister(1));
1190 break; 1178 break;
1191 case kMipsDivD: 1179 case kMipsDivD:
1192 __ div_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), 1180 __ div_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0),
1193 i.InputDoubleRegister(1)); 1181 i.InputDoubleRegister(1));
1194 break; 1182 break;
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
2316 padding_size -= v8::internal::Assembler::kInstrSize; 2304 padding_size -= v8::internal::Assembler::kInstrSize;
2317 } 2305 }
2318 } 2306 }
2319 } 2307 }
2320 2308
2321 #undef __ 2309 #undef __
2322 2310
2323 } // namespace compiler 2311 } // namespace compiler
2324 } // namespace internal 2312 } // namespace internal
2325 } // namespace v8 2313 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/mips/instruction-codes-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698