diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-10-18 16:51:22 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-10-18 16:51:22 +0000 |
| commit | 841d12d9ac489ec33d933af96d77dd4fc2a4cee2 (patch) | |
| tree | 0c884d9f0daff7fe80e93c989a4844002feb00bf /lib/Target/PowerPC/PPCAsmPrinter.cpp | |
| parent | 076866c50f6b6c45271285eb268b585b00bed9dc (diff) | |
Fix the JIT encoding of LWA, LD, STD, and STDU.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCAsmPrinter.cpp')
| -rw-r--r-- | lib/Target/PowerPC/PPCAsmPrinter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp index f1589135af..f2e2396c50 100644 --- a/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -117,6 +117,10 @@ namespace { MVT::ValueType VT) { O << (unsigned short)MI->getOperand(OpNo).getImmedValue(); } + void printS16X4ImmOperand(const MachineInstr *MI, unsigned OpNo, + MVT::ValueType VT) { + O << (short)MI->getOperand(OpNo).getImmedValue()*4; + } void printBranchOperand(const MachineInstr *MI, unsigned OpNo, MVT::ValueType VT) { // Branches can take an immediate operand. This is used by the branch |
