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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 (void)Func; | 323 (void)Func; |
324 UnimplementedError(Func->getContext()->getFlags()); | 324 UnimplementedError(Func->getContext()->getFlags()); |
325 } | 325 } |
326 | 326 |
327 template <> | 327 template <> |
328 void InstARM32ThreeAddrGPR<InstARM32::Add>::emitIAS(const Cfg *Func) const { | 328 void InstARM32ThreeAddrGPR<InstARM32::Add>::emitIAS(const Cfg *Func) const { |
329 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 329 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
330 Asm->add(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); | 330 Asm->add(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
331 } | 331 } |
332 | 332 |
| 333 template <> |
| 334 void InstARM32ThreeAddrGPR<InstARM32::Sub>::emitIAS(const Cfg *Func) const { |
| 335 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 336 Asm->sub(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
| 337 } |
| 338 |
333 InstARM32Call::InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget) | 339 InstARM32Call::InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget) |
334 : InstARM32(Func, InstARM32::Call, 1, Dest) { | 340 : InstARM32(Func, InstARM32::Call, 1, Dest) { |
335 HasSideEffects = true; | 341 HasSideEffects = true; |
336 addSource(CallTarget); | 342 addSource(CallTarget); |
337 } | 343 } |
338 | 344 |
339 InstARM32Label::InstARM32Label(Cfg *Func, TargetARM32 *Target) | 345 InstARM32Label::InstARM32Label(Cfg *Func, TargetARM32 *Target) |
340 : InstARM32(Func, InstARM32::Label, 0, nullptr), | 346 : InstARM32(Func, InstARM32::Label, 0, nullptr), |
341 Number(Target->makeNextLabelNumber()) {} | 347 Number(Target->makeNextLabelNumber()) {} |
342 | 348 |
(...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1447 template class InstARM32ThreeAddrGPR<InstARM32::Sbc>; | 1453 template class InstARM32ThreeAddrGPR<InstARM32::Sbc>; |
1448 template class InstARM32ThreeAddrGPR<InstARM32::Sdiv>; | 1454 template class InstARM32ThreeAddrGPR<InstARM32::Sdiv>; |
1449 template class InstARM32ThreeAddrGPR<InstARM32::Sub>; | 1455 template class InstARM32ThreeAddrGPR<InstARM32::Sub>; |
1450 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>; | 1456 template class InstARM32ThreeAddrGPR<InstARM32::Udiv>; |
1451 template class InstARM32ThreeAddrFP<InstARM32::Vadd>; | 1457 template class InstARM32ThreeAddrFP<InstARM32::Vadd>; |
1452 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>; | 1458 template class InstARM32ThreeAddrFP<InstARM32::Vdiv>; |
1453 template class InstARM32ThreeAddrFP<InstARM32::Vmul>; | 1459 template class InstARM32ThreeAddrFP<InstARM32::Vmul>; |
1454 template class InstARM32ThreeAddrFP<InstARM32::Vsub>; | 1460 template class InstARM32ThreeAddrFP<InstARM32::Vsub>; |
1455 | 1461 |
1456 } // end of namespace Ice | 1462 } // end of namespace Ice |
OLD | NEW |