| 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 emitUsingTextFixup(Func); | 386 emitUsingTextFixup(Func); |
| 387 } | 387 } |
| 388 | 388 |
| 389 template <> void InstARM32Sbc::emitIAS(const Cfg *Func) const { | 389 template <> void InstARM32Sbc::emitIAS(const Cfg *Func) const { |
| 390 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 390 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 391 Asm->sbc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); | 391 Asm->sbc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
| 392 if (Asm->needsTextFixup()) | 392 if (Asm->needsTextFixup()) |
| 393 emitUsingTextFixup(Func); | 393 emitUsingTextFixup(Func); |
| 394 } | 394 } |
| 395 | 395 |
| 396 template <> void InstARM32Sdiv::emitIAS(const Cfg *Func) const { |
| 397 assert(!SetFlags); |
| 398 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 399 Asm->sdiv(getDest(), getSrc(0), getSrc(1), getPredicate()); |
| 400 if (Asm->needsTextFixup()) |
| 401 emitUsingTextFixup(Func); |
| 402 } |
| 403 |
| 396 template <> void InstARM32Sub::emitIAS(const Cfg *Func) const { | 404 template <> void InstARM32Sub::emitIAS(const Cfg *Func) const { |
| 397 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 405 ARM32::AssemblerARM32 *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 398 Asm->sub(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); | 406 Asm->sub(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
| 399 if (Asm->needsTextFixup()) | 407 if (Asm->needsTextFixup()) |
| 400 emitUsingTextFixup(Func); | 408 emitUsingTextFixup(Func); |
| 401 } | 409 } |
| 402 | 410 |
| 403 InstARM32Call::InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget) | 411 InstARM32Call::InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget) |
| 404 : InstARM32(Func, InstARM32::Call, 1, Dest) { | 412 : InstARM32(Func, InstARM32::Call, 1, Dest) { |
| 405 HasSideEffects = true; | 413 HasSideEffects = true; |
| (...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1545 template class InstARM32UnaryopGPR<InstARM32::Movw, false>; | 1553 template class InstARM32UnaryopGPR<InstARM32::Movw, false>; |
| 1546 template class InstARM32UnaryopGPR<InstARM32::Clz, false>; | 1554 template class InstARM32UnaryopGPR<InstARM32::Clz, false>; |
| 1547 template class InstARM32UnaryopGPR<InstARM32::Mvn, false>; | 1555 template class InstARM32UnaryopGPR<InstARM32::Mvn, false>; |
| 1548 template class InstARM32UnaryopGPR<InstARM32::Rbit, false>; | 1556 template class InstARM32UnaryopGPR<InstARM32::Rbit, false>; |
| 1549 template class InstARM32UnaryopGPR<InstARM32::Rev, false>; | 1557 template class InstARM32UnaryopGPR<InstARM32::Rev, false>; |
| 1550 template class InstARM32UnaryopGPR<InstARM32::Sxt, true>; | 1558 template class InstARM32UnaryopGPR<InstARM32::Sxt, true>; |
| 1551 template class InstARM32UnaryopGPR<InstARM32::Uxt, true>; | 1559 template class InstARM32UnaryopGPR<InstARM32::Uxt, true>; |
| 1552 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; | 1560 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; |
| 1553 | 1561 |
| 1554 } // end of namespace Ice | 1562 } // end of namespace Ice |
| OLD | NEW |