summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsSEInstrInfo.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2013-09-27 12:03:51 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2013-09-27 12:03:51 +0000
commite1b1a684dd1459a40b9ee1f46eb865ba9e2133c1 (patch)
tree1276d97c1f81220793a637f767003e88e4eaa391 /lib/Target/Mips/MipsSEInstrInfo.cpp
parentc8a1fa77a73e7c885035421712ceba951f9024cb (diff)
downloadllvm-e1b1a684dd1459a40b9ee1f46eb865ba9e2133c1.tar.gz
llvm-e1b1a684dd1459a40b9ee1f46eb865ba9e2133c1.tar.bz2
llvm-e1b1a684dd1459a40b9ee1f46eb865ba9e2133c1.tar.xz
[mips][msa] Added support for MSA registers to copyPhysReg
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191512 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsSEInstrInfo.cpp')
-rw-r--r--lib/Target/Mips/MipsSEInstrInfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsSEInstrInfo.cpp b/lib/Target/Mips/MipsSEInstrInfo.cpp
index 9c31254cf4..d3e6416668 100644
--- a/lib/Target/Mips/MipsSEInstrInfo.cpp
+++ b/lib/Target/Mips/MipsSEInstrInfo.cpp
@@ -154,6 +154,10 @@ void MipsSEInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
else if (Mips::FGR64RegClass.contains(DestReg))
Opc = Mips::DMTC1;
}
+ else if (Mips::MSA128BRegClass.contains(DestReg)) { // Copy to MSA reg
+ if (Mips::MSA128BRegClass.contains(SrcReg))
+ Opc = Mips::MOVE_V;
+ }
assert(Opc && "Cannot copy registers");