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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 emitUsingTextFixup(Func); | 401 emitUsingTextFixup(Func); |
402 } | 402 } |
403 | 403 |
404 template <> void InstARM32Sub::emitIAS(const Cfg *Func) const { | 404 template <> void InstARM32Sub::emitIAS(const Cfg *Func) const { |
405 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 405 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
406 Asm->sub(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); | 406 Asm->sub(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
407 if (Asm->needsTextFixup()) | 407 if (Asm->needsTextFixup()) |
408 emitUsingTextFixup(Func); | 408 emitUsingTextFixup(Func); |
409 } | 409 } |
410 | 410 |
| 411 template <> void InstARM32Udiv::emitIAS(const Cfg *Func) const { |
| 412 assert(!SetFlags); |
| 413 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 414 Asm->udiv(getDest(), getSrc(0), getSrc(1), getPredicate()); |
| 415 if (Asm->needsTextFixup()) |
| 416 emitUsingTextFixup(Func); |
| 417 } |
| 418 |
411 InstARM32Call::InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget) | 419 InstARM32Call::InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget) |
412 : InstARM32(Func, InstARM32::Call, 1, Dest) { | 420 : InstARM32(Func, InstARM32::Call, 1, Dest) { |
413 HasSideEffects = true; | 421 HasSideEffects = true; |
414 addSource(CallTarget); | 422 addSource(CallTarget); |
415 } | 423 } |
416 | 424 |
417 InstARM32Label::InstARM32Label(Cfg *Func, TargetARM32 *Target) | 425 InstARM32Label::InstARM32Label(Cfg *Func, TargetARM32 *Target) |
418 : InstARM32(Func, InstARM32::Label, 0, nullptr), | 426 : InstARM32(Func, InstARM32::Label, 0, nullptr), |
419 Number(Target->makeNextLabelNumber()) {} | 427 Number(Target->makeNextLabelNumber()) {} |
420 | 428 |
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1553 template class InstARM32UnaryopGPR<InstARM32::Movw, false>; | 1561 template class InstARM32UnaryopGPR<InstARM32::Movw, false>; |
1554 template class InstARM32UnaryopGPR<InstARM32::Clz, false>; | 1562 template class InstARM32UnaryopGPR<InstARM32::Clz, false>; |
1555 template class InstARM32UnaryopGPR<InstARM32::Mvn, false>; | 1563 template class InstARM32UnaryopGPR<InstARM32::Mvn, false>; |
1556 template class InstARM32UnaryopGPR<InstARM32::Rbit, false>; | 1564 template class InstARM32UnaryopGPR<InstARM32::Rbit, false>; |
1557 template class InstARM32UnaryopGPR<InstARM32::Rev, false>; | 1565 template class InstARM32UnaryopGPR<InstARM32::Rev, false>; |
1558 template class InstARM32UnaryopGPR<InstARM32::Sxt, true>; | 1566 template class InstARM32UnaryopGPR<InstARM32::Sxt, true>; |
1559 template class InstARM32UnaryopGPR<InstARM32::Uxt, true>; | 1567 template class InstARM32UnaryopGPR<InstARM32::Uxt, true>; |
1560 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; | 1568 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; |
1561 | 1569 |
1562 } // end of namespace Ice | 1570 } // end of namespace Ice |
OLD | NEW |