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

Side by Side Diff: src/IceInstARM32.cpp

Issue 1567623008: Add vcvt<c>.f32.f64 and vcvt<c>.f64.32 to ARM. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit and merge conflicts. 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/IceInstARM32.h ('k') | tests_lit/assembler/arm32/vcvt_f32_f64.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 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after
1875 Ostream &Str = Func->getContext()->getStrEmit(); 1875 Ostream &Str = Func->getContext()->getStrEmit();
1876 assert(getSrcSize() == 1); 1876 assert(getSrcSize() == 1);
1877 assert(getDest()->hasReg()); 1877 assert(getDest()->hasReg());
1878 Str << "\t" 1878 Str << "\t"
1879 "vcvt" << getPredicate() << vcvtVariantSuffix(Variant) << "\t"; 1879 "vcvt" << getPredicate() << vcvtVariantSuffix(Variant) << "\t";
1880 getDest()->emit(Func); 1880 getDest()->emit(Func);
1881 Str << ", "; 1881 Str << ", ";
1882 getSrc(0)->emit(Func); 1882 getSrc(0)->emit(Func);
1883 } 1883 }
1884 1884
1885 void InstARM32Vcvt::emitIAS(const Cfg *Func) const {
1886 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>();
1887 switch (Variant) {
1888 case S2d:
1889 Asm->vcvtds(getDest(), getSrc(0), getPredicate());
1890 break;
1891 case D2s:
1892 Asm->vcvtsd(getDest(), getSrc(0), getPredicate());
1893 break;
1894 default:
1895 // TODO(kschimpf): Fill in other variants.
1896 Asm->setNeedsTextFixup();
1897 break;
1898 }
1899 if (Asm->needsTextFixup())
1900 emitUsingTextFixup(Func);
1901 }
1902
1885 void InstARM32Vcvt::dump(const Cfg *Func) const { 1903 void InstARM32Vcvt::dump(const Cfg *Func) const {
1886 if (!BuildDefs::dump()) 1904 if (!BuildDefs::dump())
1887 return; 1905 return;
1888 Ostream &Str = Func->getContext()->getStrDump(); 1906 Ostream &Str = Func->getContext()->getStrDump();
1889 dumpDest(Func); 1907 dumpDest(Func);
1890 Str << " = " 1908 Str << " = "
1891 << "vcvt" << getPredicate() << vcvtVariantSuffix(Variant) << " "; 1909 << "vcvt" << getPredicate() << vcvtVariantSuffix(Variant) << " ";
1892 dumpSources(Func); 1910 dumpSources(Func);
1893 } 1911 }
1894 1912
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
2224 2242
2225 template class InstARM32FourAddrGPR<InstARM32::Mla>; 2243 template class InstARM32FourAddrGPR<InstARM32::Mla>;
2226 template class InstARM32FourAddrGPR<InstARM32::Mls>; 2244 template class InstARM32FourAddrGPR<InstARM32::Mls>;
2227 2245
2228 template class InstARM32CmpLike<InstARM32::Cmn>; 2246 template class InstARM32CmpLike<InstARM32::Cmn>;
2229 template class InstARM32CmpLike<InstARM32::Cmp>; 2247 template class InstARM32CmpLike<InstARM32::Cmp>;
2230 template class InstARM32CmpLike<InstARM32::Tst>; 2248 template class InstARM32CmpLike<InstARM32::Tst>;
2231 2249
2232 } // end of namespace ARM32 2250 } // end of namespace ARM32
2233 } // end of namespace Ice 2251 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceInstARM32.h ('k') | tests_lit/assembler/arm32/vcvt_f32_f64.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698