Chromium Code Reviews| 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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 696 break; | 696 break; |
| 697 } | 697 } |
| 698 } | 698 } |
| 699 | 699 |
| 700 template <> void InstARM32Vmul::emitIAS(const Cfg *Func) const { | 700 template <> void InstARM32Vmul::emitIAS(const Cfg *Func) const { |
| 701 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 701 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 702 const Variable *Dest = getDest(); | 702 const Variable *Dest = getDest(); |
| 703 switch (Dest->getType()) { | 703 switch (Dest->getType()) { |
| 704 default: | 704 default: |
| 705 // TODO(kschimpf) Figure if more cases are needed. | 705 // TODO(kschimpf) Figure if more cases are needed. |
| 706 Asm->setNeedsTextFixup(); | 706 emitUsingTextFixup(Func); |
| 707 break; | 707 break; |
| 708 case IceType_f32: | 708 case IceType_f32: |
| 709 Asm->vmuls(getDest(), getSrc(0), getSrc(1), CondARM32::AL); | 709 Asm->vmuls(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
| 710 assert(!Asm->needsTextFixup()); | |
| 710 break; | 711 break; |
| 711 case IceType_f64: | 712 case IceType_f64: |
| 712 Asm->vmuld(getDest(), getSrc(0), getSrc(1), CondARM32::AL); | 713 Asm->vmuld(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
| 714 assert(!Asm->needsTextFixup()); | |
| 713 break; | 715 break; |
| 714 } | 716 } |
| 715 assert(!Asm->needsTextFixup()); | 717 assert(!Asm->needsTextFixup()); |
|
Karl
2016/01/28 21:16:14
I would remove this, since it doesn't appear to ad
| |
| 716 } | 718 } |
| 717 | 719 |
| 718 InstARM32Call::InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget) | 720 InstARM32Call::InstARM32Call(Cfg *Func, Variable *Dest, Operand *CallTarget) |
| 719 : InstARM32(Func, InstARM32::Call, 1, Dest) { | 721 : InstARM32(Func, InstARM32::Call, 1, Dest) { |
| 720 HasSideEffects = true; | 722 HasSideEffects = true; |
| 721 addSource(CallTarget); | 723 addSource(CallTarget); |
| 722 } | 724 } |
| 723 | 725 |
| 724 InstARM32Label::InstARM32Label(Cfg *Func, TargetARM32 *Target) | 726 InstARM32Label::InstARM32Label(Cfg *Func, TargetARM32 *Target) |
| 725 : InstARM32(Func, InstARM32::Label, 0, nullptr), | 727 : InstARM32(Func, InstARM32::Label, 0, nullptr), |
| (...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2394 | 2396 |
| 2395 template class InstARM32FourAddrGPR<InstARM32::Mla>; | 2397 template class InstARM32FourAddrGPR<InstARM32::Mla>; |
| 2396 template class InstARM32FourAddrGPR<InstARM32::Mls>; | 2398 template class InstARM32FourAddrGPR<InstARM32::Mls>; |
| 2397 | 2399 |
| 2398 template class InstARM32CmpLike<InstARM32::Cmn>; | 2400 template class InstARM32CmpLike<InstARM32::Cmn>; |
| 2399 template class InstARM32CmpLike<InstARM32::Cmp>; | 2401 template class InstARM32CmpLike<InstARM32::Cmp>; |
| 2400 template class InstARM32CmpLike<InstARM32::Tst>; | 2402 template class InstARM32CmpLike<InstARM32::Tst>; |
| 2401 | 2403 |
| 2402 } // end of namespace ARM32 | 2404 } // end of namespace ARM32 |
| 2403 } // end of namespace Ice | 2405 } // end of namespace Ice |
| OLD | NEW |