| OLD | NEW |
| 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 1828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1839 Ostream &Str = Func->getContext()->getStrEmit(); | 1839 Ostream &Str = Func->getContext()->getStrEmit(); |
| 1840 assert(getSrcSize() == 1); | 1840 assert(getSrcSize() == 1); |
| 1841 assert(getDest()->hasReg()); | 1841 assert(getDest()->hasReg()); |
| 1842 Str << "\t" | 1842 Str << "\t" |
| 1843 "vcvt" << getPredicate() << vcvtVariantSuffix(Variant) << "\t"; | 1843 "vcvt" << getPredicate() << vcvtVariantSuffix(Variant) << "\t"; |
| 1844 getDest()->emit(Func); | 1844 getDest()->emit(Func); |
| 1845 Str << ", "; | 1845 Str << ", "; |
| 1846 getSrc(0)->emit(Func); | 1846 getSrc(0)->emit(Func); |
| 1847 } | 1847 } |
| 1848 | 1848 |
| 1849 void InstARM32Vcvt::emitIAS(const Cfg *Func) const { |
| 1850 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 1851 switch (Variant) { |
| 1852 case S2d: |
| 1853 Asm->vcvtds(getDest(), getSrc(0), getPredicate()); |
| 1854 break; |
| 1855 case D2s: |
| 1856 Asm->vcvtsd(getDest(), getSrc(0), getPredicate()); |
| 1857 break; |
| 1858 default: |
| 1859 // TODO(kschimpf): Fill in other variants. |
| 1860 Asm->setNeedsTextFixup(); |
| 1861 break; |
| 1862 } |
| 1863 if (Asm->needsTextFixup()) |
| 1864 emitUsingTextFixup(Func); |
| 1865 } |
| 1866 |
| 1849 void InstARM32Vcvt::dump(const Cfg *Func) const { | 1867 void InstARM32Vcvt::dump(const Cfg *Func) const { |
| 1850 if (!BuildDefs::dump()) | 1868 if (!BuildDefs::dump()) |
| 1851 return; | 1869 return; |
| 1852 Ostream &Str = Func->getContext()->getStrDump(); | 1870 Ostream &Str = Func->getContext()->getStrDump(); |
| 1853 dumpDest(Func); | 1871 dumpDest(Func); |
| 1854 Str << " = " | 1872 Str << " = " |
| 1855 << "vcvt" << getPredicate() << vcvtVariantSuffix(Variant) << " "; | 1873 << "vcvt" << getPredicate() << vcvtVariantSuffix(Variant) << " "; |
| 1856 dumpSources(Func); | 1874 dumpSources(Func); |
| 1857 } | 1875 } |
| 1858 | 1876 |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2188 | 2206 |
| 2189 template class InstARM32FourAddrGPR<InstARM32::Mla>; | 2207 template class InstARM32FourAddrGPR<InstARM32::Mla>; |
| 2190 template class InstARM32FourAddrGPR<InstARM32::Mls>; | 2208 template class InstARM32FourAddrGPR<InstARM32::Mls>; |
| 2191 | 2209 |
| 2192 template class InstARM32CmpLike<InstARM32::Cmn>; | 2210 template class InstARM32CmpLike<InstARM32::Cmn>; |
| 2193 template class InstARM32CmpLike<InstARM32::Cmp>; | 2211 template class InstARM32CmpLike<InstARM32::Cmp>; |
| 2194 template class InstARM32CmpLike<InstARM32::Tst>; | 2212 template class InstARM32CmpLike<InstARM32::Tst>; |
| 2195 | 2213 |
| 2196 } // end of namespace ARM32 | 2214 } // end of namespace ARM32 |
| 2197 } // end of namespace Ice | 2215 } // end of namespace Ice |
| OLD | NEW |