summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/InstPrinter
diff options
context:
space:
mode:
authorReed Kotler <rkotler@mips.com>2013-12-11 03:32:44 +0000
committerReed Kotler <rkotler@mips.com>2013-12-11 03:32:44 +0000
commit5bde5c35f44beb94c8a9253cedc954d055f3b091 (patch)
treeb0b0fc214e2b8a47e60fb9952b086eaddde5be84 /llvm/lib/Target/Mips/InstPrinter
parent310b6c08baa1846964bf12bf22f7ca23c94ac592 (diff)
downloadbcm5719-llvm-5bde5c35f44beb94c8a9253cedc954d055f3b091.tar.gz
bcm5719-llvm-5bde5c35f44beb94c8a9253cedc954d055f3b091.zip
Distinguish and choose 16 or 32 bit forms of save/restore for Mips16.
llvm-svn: 196999
Diffstat (limited to 'llvm/lib/Target/Mips/InstPrinter')
-rw-r--r--llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp b/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
index c23fc6a6ed0..82deec1a1e5 100644
--- a/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
+++ b/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
@@ -85,12 +85,20 @@ void MipsInstPrinter::printInst(const MCInst *MI, raw_ostream &O,
O << "\t.set\tmips32r2\n";
break;
case Mips::Save16:
+ O << "\tsave\t";
+ printSaveRestore(MI, O);
+ O << " # 16 bit inst\n";
+ return;
case Mips::SaveX16:
O << "\tsave\t";
printSaveRestore(MI, O);
O << "\n";
return;
case Mips::Restore16:
+ O << "\trestore\t";
+ printSaveRestore(MI, O);
+ O << " # 16 bit inst\n";
+ return;
case Mips::RestoreX16:
O << "\trestore\t";
printSaveRestore(MI, O);
OpenPOWER on IntegriCloud