[mips] Accept 32-bit offsets for ld/sd/lld commands
authorSimon Atanasyan <simon@atanasyan.com>
Thu, 10 May 2018 16:01:36 +0000 (16:01 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Thu, 10 May 2018 16:01:36 +0000 (16:01 +0000)
commit05db279f528435890314d11737d706719269c8be
tree00a47e8f442557292ab2d40c0079cd0bba8b5907
parentac5f4e0546fb2a333d14c7cf7ce69a01c123e002
[mips] Accept 32-bit offsets for ld/sd/lld commands

This is a follow up to the rL330983. The patch teaches ld, sd, and lld
commands accept 32-bit memory offsets by replacing `mem_simm16` operand
to `mem_simmptr`. In fact, these commands should accept 64-bit offsets,
but so large offsets require another command expanding and will be
supported by a separate patch.

Differential Revision: https://reviews.llvm.org/D46629

llvm-svn: 331997
llvm/lib/Target/Mips/Mips64InstrInfo.td
llvm/lib/Target/Mips/Mips64r6InstrInfo.td
llvm/test/MC/Mips/mips64-expansions.s
llvm/test/MC/Mips/mips64r6/invalid.s