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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 609 Asm->vadds(getDest(), getSrc(0), getSrc(1), CondARM32::AL); | 609 Asm->vadds(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
| 610 assert(!Asm->needsTextFixup()); | 610 assert(!Asm->needsTextFixup()); |
| 611 break; | 611 break; |
| 612 case IceType_f64: | 612 case IceType_f64: |
| 613 Asm->vaddd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); | 613 Asm->vaddd(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
| 614 assert(!Asm->needsTextFixup()); | 614 assert(!Asm->needsTextFixup()); |
| 615 break; | 615 break; |
| 616 } | 616 } |
| 617 } | 617 } |
| 618 | 618 |
| 619 template <> void InstARM32Vand::emitIAS(const Cfg *Func) const { | |
| 620 // TODO(kschimpf) add support for these instructions | |
|
Eric Holk
2016/01/26 23:24:23
Is it okay to put TODOs for other people?
John
2016/01/27 15:22:20
usually the person in
TODO(person)
should be the
| |
| 621 emitUsingTextFixup(Func); | |
| 622 } | |
| 623 | |
| 619 template <> void InstARM32Vdiv::emitIAS(const Cfg *Func) const { | 624 template <> void InstARM32Vdiv::emitIAS(const Cfg *Func) const { |
| 620 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); | 625 auto *Asm = Func->getAssembler<ARM32::AssemblerARM32>(); |
| 621 const Variable *Dest = getDest(); | 626 const Variable *Dest = getDest(); |
| 622 switch (Dest->getType()) { | 627 switch (Dest->getType()) { |
| 623 default: | 628 default: |
| 624 // TODO(kschimpf) Figure if more cases are needed. | 629 // TODO(kschimpf) Figure if more cases are needed. |
| 625 Asm->setNeedsTextFixup(); | 630 Asm->setNeedsTextFixup(); |
| 626 break; | 631 break; |
| 627 case IceType_f32: | 632 case IceType_f32: |
| 628 Asm->vdivs(getDest(), getSrc(0), getSrc(1), CondARM32::AL); | 633 Asm->vdivs(getDest(), getSrc(0), getSrc(1), CondARM32::AL); |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 995 template <> const char *InstARM32Mul::Opcode = "mul"; | 1000 template <> const char *InstARM32Mul::Opcode = "mul"; |
| 996 template <> const char *InstARM32Orr::Opcode = "orr"; | 1001 template <> const char *InstARM32Orr::Opcode = "orr"; |
| 997 template <> const char *InstARM32Rsb::Opcode = "rsb"; | 1002 template <> const char *InstARM32Rsb::Opcode = "rsb"; |
| 998 template <> const char *InstARM32Rsc::Opcode = "rsc"; | 1003 template <> const char *InstARM32Rsc::Opcode = "rsc"; |
| 999 template <> const char *InstARM32Sbc::Opcode = "sbc"; | 1004 template <> const char *InstARM32Sbc::Opcode = "sbc"; |
| 1000 template <> const char *InstARM32Sdiv::Opcode = "sdiv"; | 1005 template <> const char *InstARM32Sdiv::Opcode = "sdiv"; |
| 1001 template <> const char *InstARM32Sub::Opcode = "sub"; | 1006 template <> const char *InstARM32Sub::Opcode = "sub"; |
| 1002 template <> const char *InstARM32Udiv::Opcode = "udiv"; | 1007 template <> const char *InstARM32Udiv::Opcode = "udiv"; |
| 1003 // FP | 1008 // FP |
| 1004 template <> const char *InstARM32Vadd::Opcode = "vadd"; | 1009 template <> const char *InstARM32Vadd::Opcode = "vadd"; |
| 1010 template <> const char *InstARM32Vand::Opcode = "vand"; | |
| 1005 template <> const char *InstARM32Vdiv::Opcode = "vdiv"; | 1011 template <> const char *InstARM32Vdiv::Opcode = "vdiv"; |
| 1006 template <> const char *InstARM32Veor::Opcode = "veor"; | 1012 template <> const char *InstARM32Veor::Opcode = "veor"; |
| 1007 template <> const char *InstARM32Vmla::Opcode = "vmla"; | 1013 template <> const char *InstARM32Vmla::Opcode = "vmla"; |
| 1008 template <> const char *InstARM32Vmls::Opcode = "vmls"; | 1014 template <> const char *InstARM32Vmls::Opcode = "vmls"; |
| 1009 template <> const char *InstARM32Vmul::Opcode = "vmul"; | 1015 template <> const char *InstARM32Vmul::Opcode = "vmul"; |
| 1010 template <> const char *InstARM32Vsub::Opcode = "vsub"; | 1016 template <> const char *InstARM32Vsub::Opcode = "vsub"; |
| 1011 // Four-addr ops | 1017 // Four-addr ops |
| 1012 template <> const char *InstARM32Mla::Opcode = "mla"; | 1018 template <> const char *InstARM32Mla::Opcode = "mla"; |
| 1013 template <> const char *InstARM32Mls::Opcode = "mls"; | 1019 template <> const char *InstARM32Mls::Opcode = "mls"; |
| 1014 // Cmp-like ops | 1020 // Cmp-like ops |
| (...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2304 | 2310 |
| 2305 template class InstARM32FourAddrGPR<InstARM32::Mla>; | 2311 template class InstARM32FourAddrGPR<InstARM32::Mla>; |
| 2306 template class InstARM32FourAddrGPR<InstARM32::Mls>; | 2312 template class InstARM32FourAddrGPR<InstARM32::Mls>; |
| 2307 | 2313 |
| 2308 template class InstARM32CmpLike<InstARM32::Cmn>; | 2314 template class InstARM32CmpLike<InstARM32::Cmn>; |
| 2309 template class InstARM32CmpLike<InstARM32::Cmp>; | 2315 template class InstARM32CmpLike<InstARM32::Cmp>; |
| 2310 template class InstARM32CmpLike<InstARM32::Tst>; | 2316 template class InstARM32CmpLike<InstARM32::Tst>; |
| 2311 | 2317 |
| 2312 } // end of namespace ARM32 | 2318 } // end of namespace ARM32 |
| 2313 } // end of namespace Ice | 2319 } // end of namespace Ice |
| OLD | NEW |