| 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 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1359 getDest()->emit(Func); | 1359 getDest()->emit(Func); |
| 1360 Str << ", "; | 1360 Str << ", "; |
| 1361 getSrc(0)->emit(Func); | 1361 getSrc(0)->emit(Func); |
| 1362 } | 1362 } |
| 1363 | 1363 |
| 1364 template <> void InstARM32Ldr::emitIAS(const Cfg *Func) const { | 1364 template <> void InstARM32Ldr::emitIAS(const Cfg *Func) const { |
| 1365 assert(getSrcSize() == 1); | 1365 assert(getSrcSize() == 1); |
| 1366 Variable *Dest = getDest(); | 1366 Variable *Dest = getDest(); |
| 1367 Type DestTy = Dest->getType(); | 1367 Type DestTy = Dest->getType(); |
| 1368 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 1368 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 1369 if (isVectorType(DestTy) || isScalarFloatingType(DestTy)) | 1369 if (isScalarFloatingType(DestTy)) { |
| 1370 if (DestTy == IceType_f32) |
| 1371 Asm->vldrs(Dest, getSrc(0), getPredicate(), Func->getTarget()); |
| 1372 else |
| 1373 Asm->vldrd(Dest, getSrc(0), getPredicate(), Func->getTarget()); |
| 1374 } else if (isVectorType(DestTy)) |
| 1370 // TODO(kschimpf) Handle case. | 1375 // TODO(kschimpf) Handle case. |
| 1371 Asm->setNeedsTextFixup(); | 1376 Asm->setNeedsTextFixup(); |
| 1372 else | 1377 else |
| 1373 Asm->ldr(Dest, getSrc(0), getPredicate(), Func->getTarget()); | 1378 Asm->ldr(Dest, getSrc(0), getPredicate(), Func->getTarget()); |
| 1374 if (Asm->needsTextFixup()) | 1379 if (Asm->needsTextFixup()) |
| 1375 emitUsingTextFixup(Func); | 1380 emitUsingTextFixup(Func); |
| 1376 } | 1381 } |
| 1377 | 1382 |
| 1378 template <> void InstARM32Ldrex::emit(const Cfg *Func) const { | 1383 template <> void InstARM32Ldrex::emit(const Cfg *Func) const { |
| 1379 if (!BuildDefs::dump()) | 1384 if (!BuildDefs::dump()) |
| (...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2216 | 2221 |
| 2217 template class InstARM32FourAddrGPR<InstARM32::Mla>; | 2222 template class InstARM32FourAddrGPR<InstARM32::Mla>; |
| 2218 template class InstARM32FourAddrGPR<InstARM32::Mls>; | 2223 template class InstARM32FourAddrGPR<InstARM32::Mls>; |
| 2219 | 2224 |
| 2220 template class InstARM32CmpLike<InstARM32::Cmn>; | 2225 template class InstARM32CmpLike<InstARM32::Cmn>; |
| 2221 template class InstARM32CmpLike<InstARM32::Cmp>; | 2226 template class InstARM32CmpLike<InstARM32::Cmp>; |
| 2222 template class InstARM32CmpLike<InstARM32::Tst>; | 2227 template class InstARM32CmpLike<InstARM32::Tst>; |
| 2223 | 2228 |
| 2224 } // end of namespace ARM32 | 2229 } // end of namespace ARM32 |
| 2225 } // end of namespace Ice | 2230 } // end of namespace Ice |
| OLD | NEW |