[mips][msa] MSA loads and stores have a 10-bit offset. Account for this when lowering...
authorDaniel Sanders <daniel.sanders@imgtec.com>
Sat, 30 Nov 2013 13:47:57 +0000 (13:47 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Sat, 30 Nov 2013 13:47:57 +0000 (13:47 +0000)
commit6fdef5ecd770f62366b75f1d4c8e17caf2fe0bec
tree608742f7fea0bd8be7c7dd72f679c378b8955f8a
parentc7ff23aa67a6eb29312222e273adf92d5dd78f98
[mips][msa] MSA loads and stores have a 10-bit offset. Account for this when lowering FrameIndex.

This prevents the compiler from emitting invalid ld.[bhwd]'s and st.[bhwd]'s
when the stack frame is between 512 and 32,768 bytes in size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195973 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsSERegisterInfo.cpp
test/CodeGen/Mips/msa/frameindex.ll [new file with mode: 0644]