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

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 not. 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 | « src/IceAssemblerARM32.cpp ('k') | tests_lit/assembler/arm32/vcvt.s32.f32.ll » ('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 1842 matching lines...) Expand 10 before | Expand all | Expand 10 after
1853 Str << "\t" 1853 Str << "\t"
1854 "vcvt" << getPredicate() << vcvtVariantSuffix(Variant) << "\t"; 1854 "vcvt" << getPredicate() << vcvtVariantSuffix(Variant) << "\t";
1855 getDest()->emit(Func); 1855 getDest()->emit(Func);
1856 Str << ", "; 1856 Str << ", ";
1857 getSrc(0)->emit(Func); 1857 getSrc(0)->emit(Func);
1858 } 1858 }
1859 1859
1860 void InstARM32Vcvt::emitIAS(const Cfg *Func) const { 1860 void InstARM32Vcvt::emitIAS(const Cfg *Func) const {
1861 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); 1861 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
1862 switch (Variant) { 1862 switch (Variant) {
1863 case S2si:
1864 Asm->vcvtis(getDest(), getSrc(0), getPredicate());
1865 break;
1863 case S2d: 1866 case S2d:
1864 Asm->vcvtds(getDest(), getSrc(0), getPredicate()); 1867 Asm->vcvtds(getDest(), getSrc(0), getPredicate());
1865 break; 1868 break;
1866 case D2s: 1869 case D2s:
1867 Asm->vcvtsd(getDest(), getSrc(0), getPredicate()); 1870 Asm->vcvtsd(getDest(), getSrc(0), getPredicate());
1868 break; 1871 break;
1869 default: 1872 default:
1870 // TODO(kschimpf): Fill in other variants. 1873 // TODO(kschimpf): Fill in other variants.
1871 Asm->setNeedsTextFixup(); 1874 Asm->setNeedsTextFixup();
1872 break; 1875 break;
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
2250 2253
2251 template class InstARM32FourAddrGPR<InstARM32::Mla>; 2254 template class InstARM32FourAddrGPR<InstARM32::Mla>;
2252 template class InstARM32FourAddrGPR<InstARM32::Mls>; 2255 template class InstARM32FourAddrGPR<InstARM32::Mls>;
2253 2256
2254 template class InstARM32CmpLike<InstARM32::Cmn>; 2257 template class InstARM32CmpLike<InstARM32::Cmn>;
2255 template class InstARM32CmpLike<InstARM32::Cmp>; 2258 template class InstARM32CmpLike<InstARM32::Cmp>;
2256 template class InstARM32CmpLike<InstARM32::Tst>; 2259 template class InstARM32CmpLike<InstARM32::Tst>;
2257 2260
2258 } // end of namespace ARM32 2261 } // end of namespace ARM32
2259 } // end of namespace Ice 2262 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | tests_lit/assembler/arm32/vcvt.s32.f32.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698