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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1655363002: Add vector VEOR instruction to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add DART file. Created 4 years, 10 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
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | 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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 Asm->vdivd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); 673 Asm->vdivd(getDest(), getSrc(0), getSrc(1), CondARM32::AL);
674 break; 674 break;
675 } 675 }
676 assert(!Asm->needsTextFixup()); 676 assert(!Asm->needsTextFixup());
677 } 677 }
678 678
679 template <> void InstARM32Veor::emitIAS(const Cfg *Func) const { 679 template <> void InstARM32Veor::emitIAS(const Cfg *Func) const {
680 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 680 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
681 const Variable *Dest = getDest(); 681 const Variable *Dest = getDest();
682 if (isVectorType(Dest->getType())) { 682 if (isVectorType(Dest->getType())) {
683 // TODO(kschimpf): Add support for this case 683 Asm->veorq(Dest, getSrc(0), getSrc(1));
684 emitUsingTextFixup(Func); 684 assert(!Asm->needsTextFixup());
685 return; 685 return;
686 } 686 }
687 assert(Dest->getType() == IceType_f64); 687 assert(Dest->getType() == IceType_f64);
688 Asm->veord(Dest, getSrc(0), getSrc(1)); 688 Asm->veord(Dest, getSrc(0), getSrc(1));
689 assert(!Asm->needsTextFixup()); 689 assert(!Asm->needsTextFixup());
690 } 690 }
691 691
692 template <> void InstARM32Vmla::emitIAS(const Cfg *Func) const { 692 template <> void InstARM32Vmla::emitIAS(const Cfg *Func) const {
693 // Note: Dest == getSrc(0) for four address FP instructions. 693 // Note: Dest == getSrc(0) for four address FP instructions.
694 assert(getSrcSize() == 3); 694 assert(getSrcSize() == 3);
(...skipping 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after
2526 2526
2527 template class InstARM32FourAddrGPR<InstARM32::Mla>; 2527 template class InstARM32FourAddrGPR<InstARM32::Mla>;
2528 template class InstARM32FourAddrGPR<InstARM32::Mls>; 2528 template class InstARM32FourAddrGPR<InstARM32::Mls>;
2529 2529
2530 template class InstARM32CmpLike<InstARM32::Cmn>; 2530 template class InstARM32CmpLike<InstARM32::Cmn>;
2531 template class InstARM32CmpLike<InstARM32::Cmp>; 2531 template class InstARM32CmpLike<InstARM32::Cmp>;
2532 template class InstARM32CmpLike<InstARM32::Tst>; 2532 template class InstARM32CmpLike<InstARM32::Tst>;
2533 2533
2534 } // end of namespace ARM32 2534 } // end of namespace ARM32
2535 } // end of namespace Ice 2535 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698