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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1635713002: Subzero. ARM32. Vector lowering. Add. (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
« no previous file with comments | « no previous file | src/IceTargetLoweringARM32.cpp » ('j') | tests_lit/assembler/arm32/add-vec.ll » ('J')
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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 if (Asm->needsTextFixup()) 596 if (Asm->needsTextFixup())
597 emitUsingTextFixup(Func); 597 emitUsingTextFixup(Func);
598 } 598 }
599 599
600 template <> void InstARM32Vadd::emitIAS(const Cfg *Func) const { 600 template <> void InstARM32Vadd::emitIAS(const Cfg *Func) const {
601 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 601 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
602 const Variable *Dest = getDest(); 602 const Variable *Dest = getDest();
603 switch (Dest->getType()) { 603 switch (Dest->getType()) {
604 default: 604 default:
605 // TODO(kschimpf) Figure if more cases are needed. 605 // TODO(kschimpf) Figure if more cases are needed.
606 Asm->setNeedsTextFixup(); 606 emitUsingTextFixup(Func);
607 break; 607 break;
608 case IceType_f32: 608 case IceType_f32:
609 Asm->vadds(getDest(), getSrc(0), getSrc(1), CondARM32::AL); 609 Asm->vadds(getDest(), getSrc(0), getSrc(1), CondARM32::AL);
610 assert(!Asm->needsTextFixup());
610 break; 611 break;
611 case IceType_f64: 612 case IceType_f64:
612 Asm->vaddd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); 613 Asm->vaddd(getDest(), getSrc(0), getSrc(1), CondARM32::AL);
614 assert(!Asm->needsTextFixup());
613 break; 615 break;
614 } 616 }
615 assert(!Asm->needsTextFixup());
616 } 617 }
617 618
618 template <> void InstARM32Vdiv::emitIAS(const Cfg *Func) const { 619 template <> void InstARM32Vdiv::emitIAS(const Cfg *Func) const {
619 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 620 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
620 const Variable *Dest = getDest(); 621 const Variable *Dest = getDest();
621 switch (Dest->getType()) { 622 switch (Dest->getType()) {
622 default: 623 default:
623 // TODO(kschimpf) Figure if more cases are needed. 624 // TODO(kschimpf) Figure if more cases are needed.
624 Asm->setNeedsTextFixup(); 625 Asm->setNeedsTextFixup();
625 break; 626 break;
(...skipping 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after
2297 2298
2298 template class InstARM32FourAddrGPR<InstARM32::Mla>; 2299 template class InstARM32FourAddrGPR<InstARM32::Mla>;
2299 template class InstARM32FourAddrGPR<InstARM32::Mls>; 2300 template class InstARM32FourAddrGPR<InstARM32::Mls>;
2300 2301
2301 template class InstARM32CmpLike<InstARM32::Cmn>; 2302 template class InstARM32CmpLike<InstARM32::Cmn>;
2302 template class InstARM32CmpLike<InstARM32::Cmp>; 2303 template class InstARM32CmpLike<InstARM32::Cmp>;
2303 template class InstARM32CmpLike<InstARM32::Tst>; 2304 template class InstARM32CmpLike<InstARM32::Tst>;
2304 2305
2305 } // end of namespace ARM32 2306 } // end of namespace ARM32
2306 } // end of namespace Ice 2307 } // end of namespace Ice
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringARM32.cpp » ('j') | tests_lit/assembler/arm32/add-vec.ll » ('J')

Powered by Google App Engine
This is Rietveld 408576698