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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1611293003: Add vcvt.s32.f32 instruction to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. 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 1808 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 Str << "\t" 1819 Str << "\t"
1820 "vcvt" << getPredicate() << vcvtVariantSuffix(Variant) << "\t"; 1820 "vcvt" << getPredicate() << vcvtVariantSuffix(Variant) << "\t";
1821 getDest()->emit(Func); 1821 getDest()->emit(Func);
1822 Str << ", "; 1822 Str << ", ";
1823 getSrc(0)->emit(Func); 1823 getSrc(0)->emit(Func);
1824 } 1824 }
1825 1825
1826 void InstARM32Vcvt::emitIAS(const Cfg *Func) const { 1826 void InstARM32Vcvt::emitIAS(const Cfg *Func) const {
1827 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 1827 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
1828 switch (Variant) { 1828 switch (Variant) {
1829 case S2si:
1830 Asm->vcvtis(getDest(), getSrc(0), getPredicate());
1831 break;
1829 case S2d: 1832 case S2d:
1830 Asm->vcvtds(getDest(), getSrc(0), getPredicate()); 1833 Asm->vcvtds(getDest(), getSrc(0), getPredicate());
1831 break; 1834 break;
1832 case D2s: 1835 case D2s:
1833 Asm->vcvtsd(getDest(), getSrc(0), getPredicate()); 1836 Asm->vcvtsd(getDest(), getSrc(0), getPredicate());
1834 break; 1837 break;
1835 default: 1838 default:
1836 // TODO(kschimpf): Fill in other variants. 1839 // TODO(kschimpf): Fill in other variants.
1837 Asm->setNeedsTextFixup(); 1840 Asm->setNeedsTextFixup();
1838 break; 1841 break;
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
2216 2219
2217 template class InstARM32FourAddrGPR<InstARM32::Mla>; 2220 template class InstARM32FourAddrGPR<InstARM32::Mla>;
2218 template class InstARM32FourAddrGPR<InstARM32::Mls>; 2221 template class InstARM32FourAddrGPR<InstARM32::Mls>;
2219 2222
2220 template class InstARM32CmpLike<InstARM32::Cmn>; 2223 template class InstARM32CmpLike<InstARM32::Cmn>;
2221 template class InstARM32CmpLike<InstARM32::Cmp>; 2224 template class InstARM32CmpLike<InstARM32::Cmp>;
2222 template class InstARM32CmpLike<InstARM32::Tst>; 2225 template class InstARM32CmpLike<InstARM32::Tst>;
2223 2226
2224 } // end of namespace ARM32 2227 } // end of namespace ARM32
2225 } // end of namespace Ice 2228 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698