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 1842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |