| OLD | NEW |
| 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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1304 | 1304 |
| 1305 if (isMultiSource()) { | 1305 if (isMultiSource()) { |
| 1306 emitSingleDestMultiSource(Func); | 1306 emitSingleDestMultiSource(Func); |
| 1307 return; | 1307 return; |
| 1308 } | 1308 } |
| 1309 | 1309 |
| 1310 emitSingleDestSingleSource(Func); | 1310 emitSingleDestSingleSource(Func); |
| 1311 } | 1311 } |
| 1312 | 1312 |
| 1313 void InstARM32Mov::emitIAS(const Cfg *Func) const { | 1313 void InstARM32Mov::emitIAS(const Cfg *Func) const { |
| 1314 // TODO(kschimpf) Flatten this to a switch statement of dest type. That is, |
| 1315 // combine code of emitIASSingleDestSingleSource, emitIASCoreVFPMove, |
| 1316 // emitIASScalarVFPMove, emitDoubleToI64Move, and emitI64ToDoubleMove. |
| 1317 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 1314 assert(!(isMultiDest() && isMultiSource()) && "Invalid vmov type."); | 1318 assert(!(isMultiDest() && isMultiSource()) && "Invalid vmov type."); |
| 1315 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 1319 if (isMultiDest()) |
| 1316 if (!(isMultiDest() || isMultiSource())) | 1320 Asm->vmovrrd(getDest(), getDestHi(), getSrc(0), getPredicate()); |
| 1317 // Must be single source/dest. | 1321 else if (isMultiSource()) |
| 1322 Asm->vmovdrr(getDest(), getSrc(0), getSrc(1), getPredicate()); |
| 1323 else |
| 1318 emitIASSingleDestSingleSource(Func); | 1324 emitIASSingleDestSingleSource(Func); |
| 1319 else | |
| 1320 Asm->setNeedsTextFixup(); | |
| 1321 if (Asm->needsTextFixup()) | 1325 if (Asm->needsTextFixup()) |
| 1322 emitUsingTextFixup(Func); | 1326 emitUsingTextFixup(Func); |
| 1323 } | 1327 } |
| 1324 | 1328 |
| 1325 void InstARM32Mov::dump(const Cfg *Func) const { | 1329 void InstARM32Mov::dump(const Cfg *Func) const { |
| 1326 if (!BuildDefs::dump()) | 1330 if (!BuildDefs::dump()) |
| 1327 return; | 1331 return; |
| 1328 assert(getSrcSize() == 1 || getSrcSize() == 2); | 1332 assert(getSrcSize() == 1 || getSrcSize() == 2); |
| 1329 Ostream &Str = Func->getContext()->getStrDump(); | 1333 Ostream &Str = Func->getContext()->getStrDump(); |
| 1330 Variable *Dest = getDest(); | 1334 Variable *Dest = getDest(); |
| (...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2422 | 2426 |
| 2423 template class InstARM32FourAddrGPR<InstARM32::Mla>; | 2427 template class InstARM32FourAddrGPR<InstARM32::Mla>; |
| 2424 template class InstARM32FourAddrGPR<InstARM32::Mls>; | 2428 template class InstARM32FourAddrGPR<InstARM32::Mls>; |
| 2425 | 2429 |
| 2426 template class InstARM32CmpLike<InstARM32::Cmn>; | 2430 template class InstARM32CmpLike<InstARM32::Cmn>; |
| 2427 template class InstARM32CmpLike<InstARM32::Cmp>; | 2431 template class InstARM32CmpLike<InstARM32::Cmp>; |
| 2428 template class InstARM32CmpLike<InstARM32::Tst>; | 2432 template class InstARM32CmpLike<InstARM32::Tst>; |
| 2429 | 2433 |
| 2430 } // end of namespace ARM32 | 2434 } // end of namespace ARM32 |
| 2431 } // end of namespace Ice | 2435 } // end of namespace Ice |
| OLD | NEW |