| 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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 case IceType_f32: | 608 case IceType_f32: |
| 609 Asm->vadds(getDest(), getSrc(0), getSrc(1), CondARM32::AL); | 609 Asm->vadds(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
| 610 break; | 610 break; |
| 611 case IceType_f64: | 611 case IceType_f64: |
| 612 Asm->vaddd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); | 612 Asm->vaddd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
| 613 break; | 613 break; |
| 614 } | 614 } |
| 615 assert(!Asm->needsTextFixup()); | 615 assert(!Asm->needsTextFixup()); |
| 616 } | 616 } |
| 617 | 617 |
| 618 template <> void InstARM32Vdiv::emitIAS(const Cfg *Func) const { |
| 619 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 620 const Variable *Dest = getDest(); |
| 621 switch (Dest->getType()) { |
| 622 default: |
| 623 // TODO(kschimpf) Figure if more cases are needed. |
| 624 Asm->setNeedsTextFixup(); |
| 625 break; |
| 626 case IceType_f32: |
| 627 Asm->vdivs(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
| 628 break; |
| 629 case IceType_f64: |
| 630 Asm->vdivd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
| 631 break; |
| 632 } |
| 633 assert(!Asm->needsTextFixup()); |
| 634 } |
| 635 |
| 618 template <> void InstARM32Vsub::emitIAS(const Cfg *Func) const { | 636 template <> void InstARM32Vsub::emitIAS(const Cfg *Func) const { |
| 619 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 637 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 620 const Variable *Dest = getDest(); | 638 const Variable *Dest = getDest(); |
| 621 switch (Dest->getType()) { | 639 switch (Dest->getType()) { |
| 622 default: | 640 default: |
| 623 // TODO(kschimpf) Figure if more cases are needed. | 641 // TODO(kschimpf) Figure if more cases are needed. |
| 624 Asm->setNeedsTextFixup(); | 642 Asm->setNeedsTextFixup(); |
| 625 break; | 643 break; |
| 626 case IceType_f32: | 644 case IceType_f32: |
| 627 Asm->vsubs(getDest(), getSrc(0), getSrc(1), CondARM32::AL); | 645 Asm->vsubs(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
| (...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2188 | 2206 |
| 2189 template class InstARM32FourAddrGPR<InstARM32::Mla>; | 2207 template class InstARM32FourAddrGPR<InstARM32::Mla>; |
| 2190 template class InstARM32FourAddrGPR<InstARM32::Mls>; | 2208 template class InstARM32FourAddrGPR<InstARM32::Mls>; |
| 2191 | 2209 |
| 2192 template class InstARM32CmpLike<InstARM32::Cmn>; | 2210 template class InstARM32CmpLike<InstARM32::Cmn>; |
| 2193 template class InstARM32CmpLike<InstARM32::Cmp>; | 2211 template class InstARM32CmpLike<InstARM32::Cmp>; |
| 2194 template class InstARM32CmpLike<InstARM32::Tst>; | 2212 template class InstARM32CmpLike<InstARM32::Tst>; |
| 2195 | 2213 |
| 2196 } // end of namespace ARM32 | 2214 } // end of namespace ARM32 |
| 2197 } // end of namespace Ice | 2215 } // end of namespace Ice |
| OLD | NEW |