| 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 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 addSource(Src64->getLo()); | 646 addSource(Src64->getLo()); |
| 647 addSource(Src64->getHi()); | 647 addSource(Src64->getHi()); |
| 648 } | 648 } |
| 649 } | 649 } |
| 650 | 650 |
| 651 template <InstARM32::InstKindARM32 K> | 651 template <InstARM32::InstKindARM32 K> |
| 652 void InstARM32CmpLike<K>::emitIAS(const Cfg *Func) const { | 652 void InstARM32CmpLike<K>::emitIAS(const Cfg *Func) const { |
| 653 emitUsingTextFixup(Func); | 653 emitUsingTextFixup(Func); |
| 654 } | 654 } |
| 655 | 655 |
| 656 template <> void InstARM32Cmn::emitIAS(const Cfg *Func) const { |
| 657 assert(getSrcSize() == 2); |
| 658 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 659 Asm->cmn(getSrc(0), getSrc(1), getPredicate()); |
| 660 if (Asm->needsTextFixup()) |
| 661 emitUsingTextFixup(Func); |
| 662 } |
| 663 |
| 656 template <> void InstARM32Cmp::emitIAS(const Cfg *Func) const { | 664 template <> void InstARM32Cmp::emitIAS(const Cfg *Func) const { |
| 657 assert(getSrcSize() == 2); | 665 assert(getSrcSize() == 2); |
| 658 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 666 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 659 Asm->cmp(getSrc(0), getSrc(1), getPredicate()); | 667 Asm->cmp(getSrc(0), getSrc(1), getPredicate()); |
| 660 if (Asm->needsTextFixup()) | 668 if (Asm->needsTextFixup()) |
| 661 emitUsingTextFixup(Func); | 669 emitUsingTextFixup(Func); |
| 662 } | 670 } |
| 663 | 671 |
| 664 template <> void InstARM32Tst::emitIAS(const Cfg *Func) const { | 672 template <> void InstARM32Tst::emitIAS(const Cfg *Func) const { |
| 665 assert(getSrcSize() == 2); | 673 assert(getSrcSize() == 2); |
| (...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1933 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; | 1941 template class InstARM32UnaryopFP<InstARM32::Vsqrt>; |
| 1934 | 1942 |
| 1935 template class InstARM32FourAddrGPR<InstARM32::Mla>; | 1943 template class InstARM32FourAddrGPR<InstARM32::Mla>; |
| 1936 template class InstARM32FourAddrGPR<InstARM32::Mls>; | 1944 template class InstARM32FourAddrGPR<InstARM32::Mls>; |
| 1937 | 1945 |
| 1938 template class InstARM32CmpLike<InstARM32::Cmn>; | 1946 template class InstARM32CmpLike<InstARM32::Cmn>; |
| 1939 template class InstARM32CmpLike<InstARM32::Cmp>; | 1947 template class InstARM32CmpLike<InstARM32::Cmp>; |
| 1940 template class InstARM32CmpLike<InstARM32::Tst>; | 1948 template class InstARM32CmpLike<InstARM32::Tst>; |
| 1941 | 1949 |
| 1942 } // end of namespace Ice | 1950 } // end of namespace Ice |
| OLD | NEW |