| 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 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1070 } | 1070 } |
| 1071 | 1071 |
| 1072 template <> void InstARM32Movt::emitIAS(const Cfg *Func) const { | 1072 template <> void InstARM32Movt::emitIAS(const Cfg *Func) const { |
| 1073 assert(getSrcSize() == 2); | 1073 assert(getSrcSize() == 2); |
| 1074 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 1074 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 1075 Asm->movt(getDest(), getSrc(1), getPredicate()); | 1075 Asm->movt(getDest(), getSrc(1), getPredicate()); |
| 1076 if (Asm->needsTextFixup()) | 1076 if (Asm->needsTextFixup()) |
| 1077 emitUsingTextFixup(Func); | 1077 emitUsingTextFixup(Func); |
| 1078 } | 1078 } |
| 1079 | 1079 |
| 1080 template <> void InstARM32Uxt::emitIAS(const Cfg *Func) const { |
| 1081 assert(getSrcSize() == 1); |
| 1082 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 1083 Asm->uxt(getDest(), getSrc(0), getPredicate()); |
| 1084 if (Asm->needsTextFixup()) |
| 1085 emitUsingTextFixup(Func); |
| 1086 } |
| 1087 |
| 1080 void InstARM32Pop::emit(const Cfg *Func) const { | 1088 void InstARM32Pop::emit(const Cfg *Func) const { |
| 1081 // TODO(jpp): Improve FP register save/restore. | 1089 // TODO(jpp): Improve FP register save/restore. |
| 1082 if (!BuildDefs::dump()) | 1090 if (!BuildDefs::dump()) |
| 1083 return; | 1091 return; |
| 1084 SizeT IntegerCount = 0; | 1092 SizeT IntegerCount = 0; |
| 1085 for (const Operand *Op : Dests) { | 1093 for (const Operand *Op : Dests) { |
| 1086 if (isScalarIntegerType(Op->getType())) { | 1094 if (isScalarIntegerType(Op->getType())) { |
| 1087 ++IntegerCount; | 1095 ++IntegerCount; |
| 1088 } | 1096 } |
| 1089 } | 1097 } |
| (...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1754 template class InstARM32UnaryopGPR<InstARM32::Uxt, true>; | 1762 template class InstARM32UnaryopGPR<InstARM32::Uxt, true>; |
| 1755 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; | 1763 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; |
| 1756 | 1764 |
| 1757 template class InstARM32FourAddrGPR<InstARM32::Mla>; | 1765 template class InstARM32FourAddrGPR<InstARM32::Mla>; |
| 1758 template class InstARM32FourAddrGPR<InstARM32::Mls>; | 1766 template class InstARM32FourAddrGPR<InstARM32::Mls>; |
| 1759 | 1767 |
| 1760 template class InstARM32CmpLike<InstARM32::Cmp>; | 1768 template class InstARM32CmpLike<InstARM32::Cmp>; |
| 1761 template class InstARM32CmpLike<InstARM32::Tst>; | 1769 template class InstARM32CmpLike<InstARM32::Tst>; |
| 1762 | 1770 |
| 1763 } // end of namespace Ice | 1771 } // end of namespace Ice |
| OLD | NEW |