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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 } | 353 } |
354 | 354 |
355 template <> | 355 template <> |
356 void InstARM32ThreeAddrGPR<InstARM32::Add>::emitIAS(const Cfg *Func) const { | 356 void InstARM32ThreeAddrGPR<InstARM32::Add>::emitIAS(const Cfg *Func) const { |
357 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 357 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
358 Asm->add(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); | 358 Asm->add(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
359 if (Asm->needsTextFixup()) | 359 if (Asm->needsTextFixup()) |
360 emitUsingTextFixup(Func); | 360 emitUsingTextFixup(Func); |
361 } | 361 } |
362 | 362 |
| 363 template <> void InstARM32Orr::emitIAS(const Cfg *Func) const { |
| 364 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 365 Asm->orr(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
| 366 if (Asm->needsTextFixup()) |
| 367 emitUsingTextFixup(Func); |
| 368 } |
| 369 |
363 template <> | 370 template <> |
364 void InstARM32ThreeAddrGPR<InstARM32::Sbc>::emitIAS(const Cfg *Func) const { | 371 void InstARM32ThreeAddrGPR<InstARM32::Sbc>::emitIAS(const Cfg *Func) const { |
365 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 372 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
366 Asm->sbc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); | 373 Asm->sbc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
367 if (Asm->needsTextFixup()) | 374 if (Asm->needsTextFixup()) |
368 emitUsingTextFixup(Func); | 375 emitUsingTextFixup(Func); |
369 } | 376 } |
370 | 377 |
371 template <> | 378 template <> |
372 void InstARM32ThreeAddrGPR<InstARM32::Sub>::emitIAS(const Cfg *Func) const { | 379 void InstARM32ThreeAddrGPR<InstARM32::Sub>::emitIAS(const Cfg *Func) const { |
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1456 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>; | 1463 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>; |
1457 | 1464 |
1458 template class InstARM32ThreeAddrFP<InstARM32::Vadd>; | 1465 template class InstARM32ThreeAddrFP<InstARM32::Vadd>; |
1459 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>; | 1466 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>; |
1460 template class InstARM32ThreeAddrFP<InstARM32::Vmul>; | 1467 template class InstARM32ThreeAddrFP<InstARM32::Vmul>; |
1461 template class InstARM32ThreeAddrFP<InstARM32::Vsub>; | 1468 template class InstARM32ThreeAddrFP<InstARM32::Vsub>; |
1462 | 1469 |
1463 template class InstARM32TwoAddrGPR<InstARM32::Movt>; | 1470 template class InstARM32TwoAddrGPR<InstARM32::Movt>; |
1464 | 1471 |
1465 } // end of namespace Ice | 1472 } // end of namespace Ice |
OLD | NEW |