mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Add support to the ARM MC infrastructure to support mcr and friends. This requires supporting
the symbolic immediate names used for these instructions, fixing their pretty-printers, and adding proper encoding information for them. With this, we can properly pretty-print and encode assembly like: mrc p15, #0, r3, c13, c0, #3 Fixes <rdar://problem/8857858>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123404 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -453,6 +453,16 @@ void ARMInstPrinter::printNoHashImmediate(const MCInst *MI, unsigned OpNum,
|
||||
O << MI->getOperand(OpNum).getImm();
|
||||
}
|
||||
|
||||
void ARMInstPrinter::printPImmediate(const MCInst *MI, unsigned OpNum,
|
||||
raw_ostream &O) {
|
||||
O << "p" << MI->getOperand(OpNum).getImm();
|
||||
}
|
||||
|
||||
void ARMInstPrinter::printCImmediate(const MCInst *MI, unsigned OpNum,
|
||||
raw_ostream &O) {
|
||||
O << "c" << MI->getOperand(OpNum).getImm();
|
||||
}
|
||||
|
||||
void ARMInstPrinter::printPCLabel(const MCInst *MI, unsigned OpNum,
|
||||
raw_ostream &O) {
|
||||
llvm_unreachable("Unhandled PC-relative pseudo-instruction!");
|
||||
|
||||
Reference in New Issue
Block a user