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

Side by Side Diff: src/x64/lithium-x64.cc

Issue 11293061: Emit VMLA for multiply-add on ARM (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use VMLA instead, pass all tests(*) Created 8 years, 1 month 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 | Annotate | Revision Log
« src/hydrogen-instructions.h ('K') | « src/mips/lithium-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 return DefineSameAsFirst(mul); 1274 return DefineSameAsFirst(mul);
1275 } else if (instr->representation().IsDouble()) { 1275 } else if (instr->representation().IsDouble()) {
1276 return DoArithmeticD(Token::MUL, instr); 1276 return DoArithmeticD(Token::MUL, instr);
1277 } else { 1277 } else {
1278 ASSERT(instr->representation().IsTagged()); 1278 ASSERT(instr->representation().IsTagged());
1279 return DoArithmeticT(Token::MUL, instr); 1279 return DoArithmeticT(Token::MUL, instr);
1280 } 1280 }
1281 } 1281 }
1282 1282
1283 1283
1284 LInstruction* LChunkBuilder::DoMultiplyAdd(HMultiplyAdd* instr) {
1285 UNIMPLEMENTED();
1286 return NULL;
1287 }
1288
1289
1284 LInstruction* LChunkBuilder::DoSub(HSub* instr) { 1290 LInstruction* LChunkBuilder::DoSub(HSub* instr) {
1285 if (instr->representation().IsInteger32()) { 1291 if (instr->representation().IsInteger32()) {
1286 ASSERT(instr->left()->representation().IsInteger32()); 1292 ASSERT(instr->left()->representation().IsInteger32());
1287 ASSERT(instr->right()->representation().IsInteger32()); 1293 ASSERT(instr->right()->representation().IsInteger32());
1288 LOperand* left = UseRegisterAtStart(instr->left()); 1294 LOperand* left = UseRegisterAtStart(instr->left());
1289 LOperand* right = UseOrConstantAtStart(instr->right()); 1295 LOperand* right = UseOrConstantAtStart(instr->right());
1290 LSubI* sub = new(zone()) LSubI(left, right); 1296 LSubI* sub = new(zone()) LSubI(left, right);
1291 LInstruction* result = DefineSameAsFirst(sub); 1297 LInstruction* result = DefineSameAsFirst(sub);
1292 if (instr->CheckFlag(HValue::kCanOverflow)) { 1298 if (instr->CheckFlag(HValue::kCanOverflow)) {
1293 result = AssignEnvironment(result); 1299 result = AssignEnvironment(result);
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
2259 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2265 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2260 LOperand* object = UseRegister(instr->object()); 2266 LOperand* object = UseRegister(instr->object());
2261 LOperand* index = UseTempRegister(instr->index()); 2267 LOperand* index = UseTempRegister(instr->index());
2262 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2268 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2263 } 2269 }
2264 2270
2265 2271
2266 } } // namespace v8::internal 2272 } } // namespace v8::internal
2267 2273
2268 #endif // V8_TARGET_ARCH_X64 2274 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/hydrogen-instructions.h ('K') | « src/mips/lithium-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698