summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2004-08-21 05:56:39 +0000
committerNate Begeman <natebegeman@mac.com>2004-08-21 05:56:39 +0000
commit3ad3ad4f3f85ef3a2e23cdfab47f8834ccfe7a58 (patch)
tree7d7ed95b45b5ad82a0bd120afeef7e41d296539e /llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp
parent2a86fab933abd7f0a9dd3d5c8822db11b8873a23 (diff)
downloadbcm5719-llvm-3ad3ad4f3f85ef3a2e23cdfab47f8834ccfe7a58.tar.gz
bcm5719-llvm-3ad3ad4f3f85ef3a2e23cdfab47f8834ccfe7a58.zip
Move XForm instructions over to the auto-generated asm writer
llvm-svn: 15962
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp
index 1d31e3b1302..03fc2109842 100644
--- a/llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp
@@ -86,6 +86,12 @@ namespace {
}
}
+ void printU5ImmOperand(const MachineInstr *MI, unsigned OpNo,
+ MVT::ValueType VT) {
+ unsigned char value = MI->getOperand(OpNo).getImmedValue();
+ assert(0 <= value && 31 >= value && "Invalid u5imm argument!");
+ O << (unsigned int)value;
+ }
void printU16ImmOperand(const MachineInstr *MI, unsigned OpNo,
MVT::ValueType VT) {
O << (unsigned short)MI->getOperand(OpNo).getImmedValue();
OpenPOWER on IntegriCloud