diff options
| author | Colin LeMahieu <colinl@codeaurora.org> | 2014-10-22 20:58:35 +0000 |
|---|---|---|
| committer | Colin LeMahieu <colinl@codeaurora.org> | 2014-10-22 20:58:35 +0000 |
| commit | 73a51a1a68335849805575bfd23fce6647d07d33 (patch) | |
| tree | 31a7681385b69deac92aaff59290280de7833fd0 /llvm/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp | |
| parent | 4f9c0eeff8202dd5afa7953baac4acca9d2355d4 (diff) | |
| download | bcm5719-llvm-73a51a1a68335849805575bfd23fce6647d07d33.tar.gz bcm5719-llvm-73a51a1a68335849805575bfd23fce6647d07d33.zip | |
[Hexagon] Adding encoding bits for add opcode.
Adding llvm-mc tests.
Removing unit tests.
http://reviews.llvm.org/D5624
llvm-svn: 220427
Diffstat (limited to 'llvm/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp')
| -rw-r--r-- | llvm/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp b/llvm/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp index 1fd8d7052cf..0765f185e61 100644 --- a/llvm/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp +++ b/llvm/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp @@ -91,14 +91,13 @@ void HexagonInstPrinter::printInst(const HexagonMCInst *MI, raw_ostream &O, // Ending a harware loop is different from ending an regular packet. assert(MI->isPacketEnd() && "Loop-end must also end the packet"); - if (MI->isPacketStart()) { + if (MI->isPacketBegin()) { // There must be a packet to end a loop. // FIXME: when shuffling is always run, this shouldn't be needed. - HexagonMCInst Nop; + HexagonMCInst Nop (Hexagon::NOP); StringRef NoAnnot; - Nop.setOpcode (Hexagon::NOP); - Nop.setPacketStart (MI->isPacketStart()); + Nop.setPacketBegin (MI->isPacketBegin()); printInst (&Nop, O, NoAnnot); } @@ -110,7 +109,7 @@ void HexagonInstPrinter::printInst(const HexagonMCInst *MI, raw_ostream &O, } else { // Prefix the insn opening the packet. - if (MI->isPacketStart()) + if (MI->isPacketBegin()) O << PacketPadding << startPacket << '\n'; printInstruction(MI, O); |

