Chromium Code Reviews

Side by Side Diff: src/IceInstARM32.cpp

Issue 1639923002: Subzero. ARM32. Vector lowering. Subtract. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Incorporating review feedback Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « no previous file | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 630 matching lines...)
641 Asm->veord(Dest, getSrc(0), getSrc(1)); 641 Asm->veord(Dest, getSrc(0), getSrc(1));
642 assert(!Asm->needsTextFixup()); 642 assert(!Asm->needsTextFixup());
643 } 643 }
644 644
645 template <> void InstARM32Vsub::emitIAS(const Cfg *Func) const { 645 template <> void InstARM32Vsub::emitIAS(const Cfg *Func) const {
646 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 646 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
647 const Variable *Dest = getDest(); 647 const Variable *Dest = getDest();
648 switch (Dest->getType()) { 648 switch (Dest->getType()) {
649 default: 649 default:
650 // TODO(kschimpf) Figure if more cases are needed. 650 // TODO(kschimpf) Figure if more cases are needed.
651 Asm->setNeedsTextFixup(); 651 emitUsingTextFixup(Func);
652 break; 652 break;
653 case IceType_f32: 653 case IceType_f32:
654 Asm->vsubs(getDest(), getSrc(0), getSrc(1), CondARM32::AL); 654 Asm->vsubs(getDest(), getSrc(0), getSrc(1), CondARM32::AL);
655 assert(!Asm->needsTextFixup());
655 break; 656 break;
656 case IceType_f64: 657 case IceType_f64:
657 Asm->vsubd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); 658 Asm->vsubd(getDest(), getSrc(0), getSrc(1), CondARM32::AL);
659 assert(!Asm->needsTextFixup());
658 break; 660 break;
659 } 661 }
660 assert(!Asm->needsTextFixup());
661 } 662 }
662 663
663 template <> void InstARM32Vmul::emitIAS(const Cfg *Func) const { 664 template <> void InstARM32Vmul::emitIAS(const Cfg *Func) const {
664 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 665 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
665 const Variable *Dest = getDest(); 666 const Variable *Dest = getDest();
666 switch (Dest->getType()) { 667 switch (Dest->getType()) {
667 default: 668 default:
668 // TODO(kschimpf) Figure if more cases are needed. 669 // TODO(kschimpf) Figure if more cases are needed.
669 Asm->setNeedsTextFixup(); 670 Asm->setNeedsTextFixup();
670 break; 671 break;
(...skipping 1633 matching lines...)
2304 2305
2305 template class InstARM32FourAddrGPR<InstARM32::Mla>; 2306 template class InstARM32FourAddrGPR<InstARM32::Mla>;
2306 template class InstARM32FourAddrGPR<InstARM32::Mls>; 2307 template class InstARM32FourAddrGPR<InstARM32::Mls>;
2307 2308
2308 template class InstARM32CmpLike<InstARM32::Cmn>; 2309 template class InstARM32CmpLike<InstARM32::Cmn>;
2309 template class InstARM32CmpLike<InstARM32::Cmp>; 2310 template class InstARM32CmpLike<InstARM32::Cmp>;
2310 template class InstARM32CmpLike<InstARM32::Tst>; 2311 template class InstARM32CmpLike<InstARM32::Tst>;
2311 2312
2312 } // end of namespace ARM32 2313 } // end of namespace ARM32
2313 } // end of namespace Ice 2314 } // end of namespace Ice
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine