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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1642253002: Add multi-source/dest VMOV to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 4 years, 10 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 //===- subzero/src/IceInstARM32.cpp - ARM32 instruction implementation ----===// 1 //===- subzero/src/IceInstARM32.cpp - ARM32 instruction implementation ----===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1276 1276
1277 if (isMultiSource()) { 1277 if (isMultiSource()) {
1278 emitSingleDestMultiSource(Func); 1278 emitSingleDestMultiSource(Func);
1279 return; 1279 return;
1280 } 1280 }
1281 1281
1282 emitSingleDestSingleSource(Func); 1282 emitSingleDestSingleSource(Func);
1283 } 1283 }
1284 1284
1285 void InstARM32Mov::emitIAS(const Cfg *Func) const { 1285 void InstARM32Mov::emitIAS(const Cfg *Func) const {
1286 // TODO(kschimpf) Flatten this to a switch statement of dest type. That is,
1287 // Combine code of emitIASSingleDestSingleSource, emitIASCoreVFPMove,
Jim Stichnoth 2016/01/29 00:54:39 s/Combine/combine/
Karl 2016/01/29 15:28:20 Done.
1288 // emitIASScalarVFPMove, emitDoubleToI64Move, and emitI64ToDoubleMove.
1289 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
1286 assert(!(isMultiDest() && isMultiSource()) && "Invalid vmov type."); 1290 assert(!(isMultiDest() && isMultiSource()) && "Invalid vmov type.");
1287 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 1291 if (isMultiDest())
1288 if (!(isMultiDest() || isMultiSource())) 1292 Asm->vmovrrd(getDest(), getDestHi(), getSrc(0), getPredicate());
1289 // Must be single source/dest. 1293 else if (isMultiSource())
1294 Asm->vmovdrr(getDest(), getSrc(0), getSrc(1), getPredicate());
1295 else
1290 emitIASSingleDestSingleSource(Func); 1296 emitIASSingleDestSingleSource(Func);
1291 else
1292 Asm->setNeedsTextFixup();
1293 if (Asm->needsTextFixup()) 1297 if (Asm->needsTextFixup())
1294 emitUsingTextFixup(Func); 1298 emitUsingTextFixup(Func);
1295 } 1299 }
1296 1300
1297 void InstARM32Mov::dump(const Cfg *Func) const { 1301 void InstARM32Mov::dump(const Cfg *Func) const {
1298 if (!BuildDefs::dump()) 1302 if (!BuildDefs::dump())
1299 return; 1303 return;
1300 assert(getSrcSize() == 1 || getSrcSize() == 2); 1304 assert(getSrcSize() == 1 || getSrcSize() == 2);
1301 Ostream &Str = Func->getContext()->getStrDump(); 1305 Ostream &Str = Func->getContext()->getStrDump();
1302 Variable *Dest = getDest(); 1306 Variable *Dest = getDest();
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
2394 2398
2395 template class InstARM32FourAddrGPR<InstARM32::Mla>; 2399 template class InstARM32FourAddrGPR<InstARM32::Mla>;
2396 template class InstARM32FourAddrGPR<InstARM32::Mls>; 2400 template class InstARM32FourAddrGPR<InstARM32::Mls>;
2397 2401
2398 template class InstARM32CmpLike<InstARM32::Cmn>; 2402 template class InstARM32CmpLike<InstARM32::Cmn>;
2399 template class InstARM32CmpLike<InstARM32::Cmp>; 2403 template class InstARM32CmpLike<InstARM32::Cmp>;
2400 template class InstARM32CmpLike<InstARM32::Tst>; 2404 template class InstARM32CmpLike<InstARM32::Tst>;
2401 2405
2402 } // end of namespace ARM32 2406 } // end of namespace ARM32
2403 } // end of namespace Ice 2407 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698