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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 emitUsingTextFixup(Func); | 536 emitUsingTextFixup(Func); |
537 } | 537 } |
538 | 538 |
539 template <> void InstARM32Rsb::emitIAS(const Cfg *Func) const { | 539 template <> void InstARM32Rsb::emitIAS(const Cfg *Func) const { |
540 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 540 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
541 Asm->rsb(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); | 541 Asm->rsb(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
542 if (Asm->needsTextFixup()) | 542 if (Asm->needsTextFixup()) |
543 emitUsingTextFixup(Func); | 543 emitUsingTextFixup(Func); |
544 } | 544 } |
545 | 545 |
| 546 template <> void InstARM32Rsc::emitIAS(const Cfg *Func) const { |
| 547 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 548 Asm->rsc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
| 549 if (Asm->needsTextFixup()) |
| 550 emitUsingTextFixup(Func); |
| 551 } |
| 552 |
546 template <> void InstARM32Sbc::emitIAS(const Cfg *Func) const { | 553 template <> void InstARM32Sbc::emitIAS(const Cfg *Func) const { |
547 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 554 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
548 Asm->sbc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); | 555 Asm->sbc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
549 if (Asm->needsTextFixup()) | 556 if (Asm->needsTextFixup()) |
550 emitUsingTextFixup(Func); | 557 emitUsingTextFixup(Func); |
551 } | 558 } |
552 | 559 |
553 template <> void InstARM32Sdiv::emitIAS(const Cfg *Func) const { | 560 template <> void InstARM32Sdiv::emitIAS(const Cfg *Func) const { |
554 assert(!SetFlags); | 561 assert(!SetFlags); |
555 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 562 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
(...skipping 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2020 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; | 2027 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; |
2021 | 2028 |
2022 template class InstARM32FourAddrGPR<InstARM32::Mla>; | 2029 template class InstARM32FourAddrGPR<InstARM32::Mla>; |
2023 template class InstARM32FourAddrGPR<InstARM32::Mls>; | 2030 template class InstARM32FourAddrGPR<InstARM32::Mls>; |
2024 | 2031 |
2025 template class InstARM32CmpLike<InstARM32::Cmn>; | 2032 template class InstARM32CmpLike<InstARM32::Cmn>; |
2026 template class InstARM32CmpLike<InstARM32::Cmp>; | 2033 template class InstARM32CmpLike<InstARM32::Cmp>; |
2027 template class InstARM32CmpLike<InstARM32::Tst>; | 2034 template class InstARM32CmpLike<InstARM32::Tst>; |
2028 | 2035 |
2029 } // end of namespace Ice | 2036 } // end of namespace Ice |
OLD | NEW |