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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1623433004: Add missing vcvt instructions to integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit. 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.f32.s32.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 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after
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: 1863 case S2si:
1864 Asm->vcvtis(getDest(), getSrc(0), getPredicate()); 1864 Asm->vcvtis(getDest(), getSrc(0), getPredicate());
1865 break; 1865 break;
1866 case S2ui:
1867 Asm->vcvtus(getDest(), getSrc(0), getPredicate());
1868 break;
1869 case Si2s:
1870 Asm->vcvtsi(getDest(), getSrc(0), getPredicate());
1871 break;
1872 case Ui2s:
1873 Asm->vcvtsu(getDest(), getSrc(0), getPredicate());
1874 break;
1875 case D2si:
1876 Asm->vcvtid(getDest(), getSrc(0), getPredicate());
1877 break;
1878 case D2ui:
1879 Asm->vcvtud(getDest(), getSrc(0), getPredicate());
1880 break;
1881 case Si2d:
1882 Asm->vcvtdi(getDest(), getSrc(0), getPredicate());
1883 break;
1884 case Ui2d:
1885 Asm->vcvtdu(getDest(), getSrc(0), getPredicate());
1886 break;
1866 case S2d: 1887 case S2d:
1867 Asm->vcvtds(getDest(), getSrc(0), getPredicate()); 1888 Asm->vcvtds(getDest(), getSrc(0), getPredicate());
1868 break; 1889 break;
1869 case D2s: 1890 case D2s:
1870 Asm->vcvtsd(getDest(), getSrc(0), getPredicate()); 1891 Asm->vcvtsd(getDest(), getSrc(0), getPredicate());
1871 break; 1892 break;
1872 default:
1873 // TODO(kschimpf): Fill in other variants.
1874 Asm->setNeedsTextFixup();
1875 break;
1876 } 1893 }
1877 if (Asm->needsTextFixup()) 1894 assert(!Asm->needsTextFixup());
1878 emitUsingTextFixup(Func);
1879 } 1895 }
1880 1896
1881 void InstARM32Vcvt::dump(const Cfg *Func) const { 1897 void InstARM32Vcvt::dump(const Cfg *Func) const {
1882 if (!BuildDefs::dump()) 1898 if (!BuildDefs::dump())
1883 return; 1899 return;
1884 Ostream &Str = Func->getContext()->getStrDump(); 1900 Ostream &Str = Func->getContext()->getStrDump();
1885 dumpDest(Func); 1901 dumpDest(Func);
1886 Str << " = " 1902 Str << " = "
1887 << "vcvt" << getPredicate() << vcvtVariantSuffix(Variant) << " "; 1903 << "vcvt" << getPredicate() << vcvtVariantSuffix(Variant) << " ";
1888 dumpSources(Func); 1904 dumpSources(Func);
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
2253 2269
2254 template class InstARM32FourAddrGPR<InstARM32::Mla>; 2270 template class InstARM32FourAddrGPR<InstARM32::Mla>;
2255 template class InstARM32FourAddrGPR<InstARM32::Mls>; 2271 template class InstARM32FourAddrGPR<InstARM32::Mls>;
2256 2272
2257 template class InstARM32CmpLike<InstARM32::Cmn>; 2273 template class InstARM32CmpLike<InstARM32::Cmn>;
2258 template class InstARM32CmpLike<InstARM32::Cmp>; 2274 template class InstARM32CmpLike<InstARM32::Cmp>;
2259 template class InstARM32CmpLike<InstARM32::Tst>; 2275 template class InstARM32CmpLike<InstARM32::Tst>;
2260 2276
2261 } // end of namespace ARM32 2277 } // end of namespace ARM32
2262 } // end of namespace Ice 2278 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | tests_lit/assembler/arm32/vcvt.f32.s32.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698