Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(704)

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: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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...) Expand 10 before | Expand all | Expand 10 after
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 Asm->setNeedsTextFixup();
John 2016/01/26 19:07:17 remove Asm->setNeedsTextFixup(); and invoke emitUs
Eric Holk 2016/01/26 22:56:38 Done.
652 break; 652 break;
653 case IceType_f32: 653 case IceType_f32:
654 assert(!Asm->needsTextFixup());
654 Asm->vsubs(getDest(), getSrc(0), getSrc(1), CondARM32::AL); 655 Asm->vsubs(getDest(), getSrc(0), getSrc(1), CondARM32::AL);
John 2016/01/26 19:07:17 move the assert below Asm->vsub()
Eric Holk 2016/01/26 22:56:38 Done.
655 break; 656 break;
656 case IceType_f64: 657 case IceType_f64:
658 assert(!Asm->needsTextFixup());
657 Asm->vsubd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); 659 Asm->vsubd(getDest(), getSrc(0), getSrc(1), CondARM32::AL);
658 break; 660 break;
659 } 661 }
660 assert(!Asm->needsTextFixup()); 662 if (Asm->needsTextFixup()) {
John 2016/01/26 19:07:17 remove this
Eric Holk 2016/01/26 22:56:38 Done.
663 emitUsingTextFixup(Func);
664 }
661 } 665 }
662 666
663 template <> void InstARM32Vmul::emitIAS(const Cfg *Func) const { 667 template <> void InstARM32Vmul::emitIAS(const Cfg *Func) const {
664 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 668 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
665 const Variable *Dest = getDest(); 669 const Variable *Dest = getDest();
666 switch (Dest->getType()) { 670 switch (Dest->getType()) {
667 default: 671 default:
668 // TODO(kschimpf) Figure if more cases are needed. 672 // TODO(kschimpf) Figure if more cases are needed.
669 Asm->setNeedsTextFixup(); 673 Asm->setNeedsTextFixup();
670 break; 674 break;
(...skipping 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after
2304 2308
2305 template class InstARM32FourAddrGPR<InstARM32::Mla>; 2309 template class InstARM32FourAddrGPR<InstARM32::Mla>;
2306 template class InstARM32FourAddrGPR<InstARM32::Mls>; 2310 template class InstARM32FourAddrGPR<InstARM32::Mls>;
2307 2311
2308 template class InstARM32CmpLike<InstARM32::Cmn>; 2312 template class InstARM32CmpLike<InstARM32::Cmn>;
2309 template class InstARM32CmpLike<InstARM32::Cmp>; 2313 template class InstARM32CmpLike<InstARM32::Cmp>;
2310 template class InstARM32CmpLike<InstARM32::Tst>; 2314 template class InstARM32CmpLike<InstARM32::Tst>;
2311 2315
2312 } // end of namespace ARM32 2316 } // end of namespace ARM32
2313 } // end of namespace Ice 2317 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698