diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2013-09-27 11:48:57 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2013-09-27 11:48:57 +0000 |
commit | 7e51fe19d5f307850a977e572cef756e8000bc9a (patch) | |
tree | b4789a6319906ff5d34022e9abb5c09b21ba6009 /llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp | |
parent | 3c42ce15166d61531500a9dacda9372028a3e27a (diff) | |
download | bcm5719-llvm-7e51fe19d5f307850a977e572cef756e8000bc9a.tar.gz bcm5719-llvm-7e51fe19d5f307850a977e572cef756e8000bc9a.zip |
[mips][msa] Added support for matching splati from normal IR (i.e. not intrinsics)
Updated some of the vshf since they (correctly) emit splati's now
llvm-svn: 191511
Diffstat (limited to 'llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp b/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp index 2612e3ba1ce..78845898997 100644 --- a/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp +++ b/llvm/lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp @@ -184,6 +184,15 @@ void MipsInstPrinter::printUnsignedImm(const MCInst *MI, int opNum, printOperand(MI, opNum, O); } +void MipsInstPrinter::printUnsignedImm8(const MCInst *MI, int opNum, + raw_ostream &O) { + const MCOperand &MO = MI->getOperand(opNum); + if (MO.isImm()) + O << (unsigned short int)(unsigned char)MO.getImm(); + else + printOperand(MI, opNum, O); +} + void MipsInstPrinter:: printMemOperand(const MCInst *MI, int opNum, raw_ostream &O) { // Load/Store memory operands -- imm($reg) |