| 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 emitUsingTextFixup(Func); | 499 emitUsingTextFixup(Func); |
| 500 } | 500 } |
| 501 | 501 |
| 502 template <> void InstARM32Mul::emitIAS(const Cfg *Func) const { | 502 template <> void InstARM32Mul::emitIAS(const Cfg *Func) const { |
| 503 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 503 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 504 Asm->mul(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); | 504 Asm->mul(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
| 505 if (Asm->needsTextFixup()) | 505 if (Asm->needsTextFixup()) |
| 506 emitUsingTextFixup(Func); | 506 emitUsingTextFixup(Func); |
| 507 } | 507 } |
| 508 | 508 |
| 509 template <> void InstARM32Rsb::emitIAS(const Cfg *Func) const { |
| 510 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 511 Asm->rsb(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
| 512 if (Asm->needsTextFixup()) |
| 513 emitUsingTextFixup(Func); |
| 514 } |
| 515 |
| 509 template <> void InstARM32Sbc::emitIAS(const Cfg *Func) const { | 516 template <> void InstARM32Sbc::emitIAS(const Cfg *Func) const { |
| 510 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 517 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 511 Asm->sbc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); | 518 Asm->sbc(getDest(), getSrc(0), getSrc(1), SetFlags, getPredicate()); |
| 512 if (Asm->needsTextFixup()) | 519 if (Asm->needsTextFixup()) |
| 513 emitUsingTextFixup(Func); | 520 emitUsingTextFixup(Func); |
| 514 } | 521 } |
| 515 | 522 |
| 516 template <> void InstARM32Sdiv::emitIAS(const Cfg *Func) const { | 523 template <> void InstARM32Sdiv::emitIAS(const Cfg *Func) const { |
| 517 assert(!SetFlags); | 524 assert(!SetFlags); |
| 518 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 525 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| (...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1904 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; | 1911 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; |
| 1905 | 1912 |
| 1906 template class InstARM32FourAddrGPR<InstARM32::Mla>; | 1913 template class InstARM32FourAddrGPR<InstARM32::Mla>; |
| 1907 template class InstARM32FourAddrGPR<InstARM32::Mls>; | 1914 template class InstARM32FourAddrGPR<InstARM32::Mls>; |
| 1908 | 1915 |
| 1909 template class InstARM32CmpLike<InstARM32::Cmn>; | 1916 template class InstARM32CmpLike<InstARM32::Cmn>; |
| 1910 template class InstARM32CmpLike<InstARM32::Cmp>; | 1917 template class InstARM32CmpLike<InstARM32::Cmp>; |
| 1911 template class InstARM32CmpLike<InstARM32::Tst>; | 1918 template class InstARM32CmpLike<InstARM32::Tst>; |
| 1912 | 1919 |
| 1913 } // end of namespace Ice | 1920 } // end of namespace Ice |
| OLD | NEW |