| 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 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 case IceType_f32: | 626 case IceType_f32: |
| 627 Asm->vdivs(getDest(), getSrc(0), getSrc(1), CondARM32::AL); | 627 Asm->vdivs(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
| 628 break; | 628 break; |
| 629 case IceType_f64: | 629 case IceType_f64: |
| 630 Asm->vdivd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); | 630 Asm->vdivd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
| 631 break; | 631 break; |
| 632 } | 632 } |
| 633 assert(!Asm->needsTextFixup()); | 633 assert(!Asm->needsTextFixup()); |
| 634 } | 634 } |
| 635 | 635 |
| 636 template <> void InstARM32Veor::emitIAS(const Cfg *Func) const { |
| 637 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 638 const Variable *Dest = getDest(); |
| 639 assert(Dest->getType() == IceType_f64); |
| 640 Asm->veord(Dest, getSrc(0), getSrc(1)); |
| 641 assert(!Asm->needsTextFixup()); |
| 642 } |
| 643 |
| 636 template <> void InstARM32Vsub::emitIAS(const Cfg *Func) const { | 644 template <> void InstARM32Vsub::emitIAS(const Cfg *Func) const { |
| 637 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 645 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 638 const Variable *Dest = getDest(); | 646 const Variable *Dest = getDest(); |
| 639 switch (Dest->getType()) { | 647 switch (Dest->getType()) { |
| 640 default: | 648 default: |
| 641 // TODO(kschimpf) Figure if more cases are needed. | 649 // TODO(kschimpf) Figure if more cases are needed. |
| 642 Asm->setNeedsTextFixup(); | 650 Asm->setNeedsTextFixup(); |
| 643 break; | 651 break; |
| 644 case IceType_f32: | 652 case IceType_f32: |
| 645 Asm->vsubs(getDest(), getSrc(0), getSrc(1), CondARM32::AL); | 653 Asm->vsubs(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
| (...skipping 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2226 | 2234 |
| 2227 template class InstARM32FourAddrGPR<InstARM32::Mla>; | 2235 template class InstARM32FourAddrGPR<InstARM32::Mla>; |
| 2228 template class InstARM32FourAddrGPR<InstARM32::Mls>; | 2236 template class InstARM32FourAddrGPR<InstARM32::Mls>; |
| 2229 | 2237 |
| 2230 template class InstARM32CmpLike<InstARM32::Cmn>; | 2238 template class InstARM32CmpLike<InstARM32::Cmn>; |
| 2231 template class InstARM32CmpLike<InstARM32::Cmp>; | 2239 template class InstARM32CmpLike<InstARM32::Cmp>; |
| 2232 template class InstARM32CmpLike<InstARM32::Tst>; | 2240 template class InstARM32CmpLike<InstARM32::Tst>; |
| 2233 | 2241 |
| 2234 } // end of namespace ARM32 | 2242 } // end of namespace ARM32 |
| 2235 } // end of namespace Ice | 2243 } // end of namespace Ice |
| OLD | NEW |