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

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') | src/IceTargetLoweringARM32.cpp » ('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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 Asm->udiv(getDest(), getSrc(0), getSrc(1), getPredicate()); 595 Asm->udiv(getDest(), getSrc(0), getSrc(1), getPredicate());
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 emitUsingTextFixup(Func);
Karl 2016/01/25 20:46:36 Please do not remove this TODO, or at least leave
606 Asm->setNeedsTextFixup();
607 break; 606 break;
608 case IceType_f32: 607 case IceType_f32:
609 Asm->vadds(getDest(), getSrc(0), getSrc(1), CondARM32::AL); 608 Asm->vadds(getDest(), getSrc(0), getSrc(1), CondARM32::AL);
609 assert(!Asm->needsTextFixup());
Karl 2016/01/25 20:46:36 Please leave these asserts in. It is checking whet
Eric Holk 2016/01/25 20:56:19 Thanks. I added the assert and the TODO back in.
John 2016/01/25 20:58:57 Spoke to Karl. he misread the code. OK to leave as
Eric Holk 2016/01/25 21:20:33 Karl's complaint still seems valid. The assert was
Karl 2016/01/25 21:28:23 If you add back the TODO on line 605, it is suffic
610 break; 610 break;
611 case IceType_f64: 611 case IceType_f64:
612 Asm->vaddd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); 612 Asm->vaddd(getDest(), getSrc(0), getSrc(1), CondARM32::AL);
613 assert(!Asm->needsTextFixup());
613 break; 614 break;
614 } 615 }
615 assert(!Asm->needsTextFixup());
616 } 616 }
617 617
618 template <> void InstARM32Vdiv::emitIAS(const Cfg *Func) const { 618 template <> void InstARM32Vdiv::emitIAS(const Cfg *Func) const {
619 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 619 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
620 const Variable *Dest = getDest(); 620 const Variable *Dest = getDest();
621 switch (Dest->getType()) { 621 switch (Dest->getType()) {
622 default: 622 default:
623 // TODO(kschimpf) Figure if more cases are needed. 623 // TODO(kschimpf) Figure if more cases are needed.
624 Asm->setNeedsTextFixup(); 624 Asm->setNeedsTextFixup();
625 break; 625 break;
(...skipping 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after
2297 2297
2298 template class InstARM32FourAddrGPR<InstARM32::Mla>; 2298 template class InstARM32FourAddrGPR<InstARM32::Mla>;
2299 template class InstARM32FourAddrGPR<InstARM32::Mls>; 2299 template class InstARM32FourAddrGPR<InstARM32::Mls>;
2300 2300
2301 template class InstARM32CmpLike<InstARM32::Cmn>; 2301 template class InstARM32CmpLike<InstARM32::Cmn>;
2302 template class InstARM32CmpLike<InstARM32::Cmp>; 2302 template class InstARM32CmpLike<InstARM32::Cmp>;
2303 template class InstARM32CmpLike<InstARM32::Tst>; 2303 template class InstARM32CmpLike<InstARM32::Tst>;
2304 2304
2305 } // end of namespace ARM32 2305 } // end of namespace ARM32
2306 } // end of namespace Ice 2306 } // end of namespace Ice
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringARM32.cpp » ('j') | src/IceTargetLoweringARM32.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698