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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1417393003: Subzero. ARM32. New bool folding. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Adds --force to check-spec Created 5 years, 1 month 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/IceInstARM32.h ('k') | src/IceTLS.h » ('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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 Ostream &Str = Func->getContext()->getStrDump(); 875 Ostream &Str = Func->getContext()->getStrDump();
876 Str << "br "; 876 Str << "br ";
877 877
878 if (getPredicate() == CondARM32::AL) { 878 if (getPredicate() == CondARM32::AL) {
879 Str << "label %" 879 Str << "label %"
880 << (Label ? Label->getName(Func) : getTargetFalse()->getName()); 880 << (Label ? Label->getName(Func) : getTargetFalse()->getName());
881 return; 881 return;
882 } 882 }
883 883
884 if (Label) { 884 if (Label) {
885 Str << "label %" << Label->getName(Func); 885 Str << getPredicate() << ", label %" << Label->getName(Func);
886 } else { 886 } else {
887 Str << getPredicate() << ", label %" << getTargetTrue()->getName(); 887 Str << getPredicate() << ", label %" << getTargetTrue()->getName();
888 if (getTargetFalse()) { 888 if (getTargetFalse()) {
889 Str << ", label %" << getTargetFalse()->getName(); 889 Str << ", label %" << getTargetFalse()->getName();
890 } 890 }
891 } 891 }
892 } 892 }
893 893
894 void InstARM32Call::emit(const Cfg *Func) const { 894 void InstARM32Call::emit(const Cfg *Func) const {
895 if (!BuildDefs::dump()) 895 if (!BuildDefs::dump())
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
1754 template class InstARM32UnaryopGPR<InstARM32::Uxt, true>; 1754 template class InstARM32UnaryopGPR<InstARM32::Uxt, true>;
1755 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; 1755 template class InstARM32UnaryopFP<InstARM32::Vsqrt>;
1756 1756
1757 template class InstARM32FourAddrGPR<InstARM32::Mla>; 1757 template class InstARM32FourAddrGPR<InstARM32::Mla>;
1758 template class InstARM32FourAddrGPR<InstARM32::Mls>; 1758 template class InstARM32FourAddrGPR<InstARM32::Mls>;
1759 1759
1760 template class InstARM32CmpLike<InstARM32::Cmp>; 1760 template class InstARM32CmpLike<InstARM32::Cmp>;
1761 template class InstARM32CmpLike<InstARM32::Tst>; 1761 template class InstARM32CmpLike<InstARM32::Tst>;
1762 1762
1763 } // end of namespace Ice 1763 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceInstARM32.h ('k') | src/IceTLS.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698