| 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 } | 338 } |
| 339 return Found; | 339 return Found; |
| 340 } | 340 } |
| 341 | 341 |
| 342 template <InstARM32::InstKindARM32 K> | 342 template <InstARM32::InstKindARM32 K> |
| 343 void InstARM32ThreeAddrGPR<K>::emitIAS(const Cfg *Func) const { | 343 void InstARM32ThreeAddrGPR<K>::emitIAS(const Cfg *Func) const { |
| 344 emitUsingTextFixup(Func); | 344 emitUsingTextFixup(Func); |
| 345 } | 345 } |
| 346 | 346 |
| 347 template <> | 347 template <> |
| 348 void InstARM32ThreeAddrGPR<InstARM32::Adc>::emitIAS(const Cfg *Func) const { |
| 349 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 350 Asm->adc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
| 351 if (Asm->needsTextFixup()) |
| 352 emitUsingTextFixup(Func); |
| 353 } |
| 354 |
| 355 template <> |
| 348 void InstARM32ThreeAddrGPR<InstARM32::Add>::emitIAS(const Cfg *Func) const { | 356 void InstARM32ThreeAddrGPR<InstARM32::Add>::emitIAS(const Cfg *Func) const { |
| 349 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 357 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 350 Asm->add(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); | 358 Asm->add(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
| 351 if (Asm->needsTextFixup()) | 359 if (Asm->needsTextFixup()) |
| 352 emitUsingTextFixup(Func); | 360 emitUsingTextFixup(Func); |
| 353 } | 361 } |
| 354 | 362 |
| 355 template <> | 363 template <> |
| 356 void InstARM32ThreeAddrGPR<InstARM32::Sub>::emitIAS(const Cfg *Func) const { | 364 void InstARM32ThreeAddrGPR<InstARM32::Sub>::emitIAS(const Cfg *Func) const { |
| 357 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 365 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| (...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1441 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>; | 1449 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>; |
| 1442 | 1450 |
| 1443 template class InstARM32ThreeAddrFP<InstARM32::Vadd>; | 1451 template class InstARM32ThreeAddrFP<InstARM32::Vadd>; |
| 1444 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>; | 1452 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>; |
| 1445 template class InstARM32ThreeAddrFP<InstARM32::Vmul>; | 1453 template class InstARM32ThreeAddrFP<InstARM32::Vmul>; |
| 1446 template class InstARM32ThreeAddrFP<InstARM32::Vsub>; | 1454 template class InstARM32ThreeAddrFP<InstARM32::Vsub>; |
| 1447 | 1455 |
| 1448 template class InstARM32TwoAddrGPR<InstARM32::Movt>; | 1456 template class InstARM32TwoAddrGPR<InstARM32::Movt>; |
| 1449 | 1457 |
| 1450 } // end of namespace Ice | 1458 } // end of namespace Ice |
| OLD | NEW |