diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-10-13 21:00:04 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-10-13 21:00:04 +0000 |
commit | 7e72ec6626b6eaa06519145dd81c5142b9ad7e3c (patch) | |
tree | 50b19c56398450515c05a94e7bf5875f1d85f9cb /llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp | |
parent | f106ecfa59981a830a00209ec704a01e57348422 (diff) | |
download | bcm5719-llvm-7e72ec6626b6eaa06519145dd81c5142b9ad7e3c.tar.gz bcm5719-llvm-7e72ec6626b6eaa06519145dd81c5142b9ad7e3c.zip |
Refactor the ARM 'setend' instruction pattern. Use a single instruction pattern
and handle the operand explicitly. Flesh out encoding information. Add an
explicit disassembler testcase for the instruction.
llvm-svn: 116432
Diffstat (limited to 'llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp b/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp index 027cdc8cf83..857a3792951 100644 --- a/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp +++ b/llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp @@ -400,6 +400,15 @@ void ARMInstPrinter::printRegisterList(const MCInst *MI, unsigned OpNum, O << "}"; } +void ARMInstPrinter::printSetendOperand(const MCInst *MI, unsigned OpNum, + raw_ostream &O) { + const MCOperand &Op = MI->getOperand(OpNum); + if (Op.getImm()) + O << "be"; + else + O << "le"; +} + void ARMInstPrinter::printCPSOptionOperand(const MCInst *MI, unsigned OpNum, raw_ostream &O) { const MCOperand &Op = MI->getOperand(OpNum); |