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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 595 Asm->udiv(getDest(), getSrc(0), getSrc(1), getPredicate()); | 595 Asm->udiv(getDest(), getSrc(0), getSrc(1), getPredicate()); |
| 596 if (Asm->needsTextFixup()) | 596 if (Asm->needsTextFixup()) |
| 597 emitUsingTextFixup(Func); | 597 emitUsingTextFixup(Func); |
| 598 } | 598 } |
| 599 | 599 |
| 600 template <> void InstARM32Vadd::emitIAS(const Cfg *Func) const { | 600 template <> void InstARM32Vadd::emitIAS(const Cfg *Func) const { |
| 601 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 601 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 602 const Variable *Dest = getDest(); | 602 const Variable *Dest = getDest(); |
| 603 switch (Dest->getType()) { | 603 switch (Dest->getType()) { |
| 604 default: | 604 default: |
| 605 // TODO(kschimpf) Figure if more cases are needed. | 605 emitUsingTextFixup(Func); |
|
Karl
2016/01/25 20:46:36
Please do not remove this TODO, or at least leave
| |
| 606 Asm->setNeedsTextFixup(); | |
| 607 break; | 606 break; |
| 608 case IceType_f32: | 607 case IceType_f32: |
| 609 Asm->vadds(getDest(), getSrc(0), getSrc(1), CondARM32::AL); | 608 Asm->vadds(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
| 609 assert(!Asm->needsTextFixup()); | |
|
Karl
2016/01/25 20:46:36
Please leave these asserts in. It is checking whet
Eric Holk
2016/01/25 20:56:19
Thanks. I added the assert and the TODO back in.
John
2016/01/25 20:58:57
Spoke to Karl. he misread the code. OK to leave as
Eric Holk
2016/01/25 21:20:33
Karl's complaint still seems valid. The assert was
Karl
2016/01/25 21:28:23
If you add back the TODO on line 605, it is suffic
| |
| 610 break; | 610 break; |
| 611 case IceType_f64: | 611 case IceType_f64: |
| 612 Asm->vaddd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); | 612 Asm->vaddd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
| 613 assert(!Asm->needsTextFixup()); | |
| 613 break; | 614 break; |
| 614 } | 615 } |
| 615 assert(!Asm->needsTextFixup()); | |
| 616 } | 616 } |
| 617 | 617 |
| 618 template <> void InstARM32Vdiv::emitIAS(const Cfg *Func) const { | 618 template <> void InstARM32Vdiv::emitIAS(const Cfg *Func) const { |
| 619 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 619 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 620 const Variable *Dest = getDest(); | 620 const Variable *Dest = getDest(); |
| 621 switch (Dest->getType()) { | 621 switch (Dest->getType()) { |
| 622 default: | 622 default: |
| 623 // TODO(kschimpf) Figure if more cases are needed. | 623 // TODO(kschimpf) Figure if more cases are needed. |
| 624 Asm->setNeedsTextFixup(); | 624 Asm->setNeedsTextFixup(); |
| 625 break; | 625 break; |
| (...skipping 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2297 | 2297 |
| 2298 template class InstARM32FourAddrGPR<InstARM32::Mla>; | 2298 template class InstARM32FourAddrGPR<InstARM32::Mla>; |
| 2299 template class InstARM32FourAddrGPR<InstARM32::Mls>; | 2299 template class InstARM32FourAddrGPR<InstARM32::Mls>; |
| 2300 | 2300 |
| 2301 template class InstARM32CmpLike<InstARM32::Cmn>; | 2301 template class InstARM32CmpLike<InstARM32::Cmn>; |
| 2302 template class InstARM32CmpLike<InstARM32::Cmp>; | 2302 template class InstARM32CmpLike<InstARM32::Cmp>; |
| 2303 template class InstARM32CmpLike<InstARM32::Tst>; | 2303 template class InstARM32CmpLike<InstARM32::Tst>; |
| 2304 | 2304 |
| 2305 } // end of namespace ARM32 | 2305 } // end of namespace ARM32 |
| 2306 } // end of namespace Ice | 2306 } // end of namespace Ice |
| OLD | NEW |