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 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 case IceType_f64: | 640 case IceType_f64: |
641 Asm->vdivd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); | 641 Asm->vdivd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
642 break; | 642 break; |
643 } | 643 } |
644 assert(!Asm->needsTextFixup()); | 644 assert(!Asm->needsTextFixup()); |
645 } | 645 } |
646 | 646 |
647 template <> void InstARM32Veor::emitIAS(const Cfg *Func) const { | 647 template <> void InstARM32Veor::emitIAS(const Cfg *Func) const { |
648 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 648 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
649 const Variable *Dest = getDest(); | 649 const Variable *Dest = getDest(); |
| 650 if (isVectorType(Dest->getType())) { |
| 651 // TODO(kschimpf): Add support for this case |
| 652 emitUsingTextFixup(Func); |
| 653 return; |
| 654 } |
650 assert(Dest->getType() == IceType_f64); | 655 assert(Dest->getType() == IceType_f64); |
651 Asm->veord(Dest, getSrc(0), getSrc(1)); | 656 Asm->veord(Dest, getSrc(0), getSrc(1)); |
652 assert(!Asm->needsTextFixup()); | 657 assert(!Asm->needsTextFixup()); |
653 } | 658 } |
654 | 659 |
655 template <> void InstARM32Vmla::emitIAS(const Cfg *Func) const { | 660 template <> void InstARM32Vmla::emitIAS(const Cfg *Func) const { |
656 // Note: Dest == getSrc(0) for four address FP instructions. | 661 // Note: Dest == getSrc(0) for four address FP instructions. |
657 assert(getSrcSize() == 3); | 662 assert(getSrcSize() == 3); |
658 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 663 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
659 const Variable *Dest = getDest(); | 664 const Variable *Dest = getDest(); |
(...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2394 | 2399 |
2395 template class InstARM32FourAddrGPR<InstARM32::Mla>; | 2400 template class InstARM32FourAddrGPR<InstARM32::Mla>; |
2396 template class InstARM32FourAddrGPR<InstARM32::Mls>; | 2401 template class InstARM32FourAddrGPR<InstARM32::Mls>; |
2397 | 2402 |
2398 template class InstARM32CmpLike<InstARM32::Cmn>; | 2403 template class InstARM32CmpLike<InstARM32::Cmn>; |
2399 template class InstARM32CmpLike<InstARM32::Cmp>; | 2404 template class InstARM32CmpLike<InstARM32::Cmp>; |
2400 template class InstARM32CmpLike<InstARM32::Tst>; | 2405 template class InstARM32CmpLike<InstARM32::Tst>; |
2401 | 2406 |
2402 } // end of namespace ARM32 | 2407 } // end of namespace ARM32 |
2403 } // end of namespace Ice | 2408 } // end of namespace Ice |
OLD | NEW |