[mips] Support 9-bit offsets for the 'R' inline assembly memory constraint.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 30 Mar 2015 13:27:25 +0000 (13:27 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 30 Mar 2015 13:27:25 +0000 (13:27 +0000)
commit35efeb5e16b492df88d8653914ea784ef663d79f
tree87686b87425670ccdccc8572f4efb9016c530285
parent4f2bfb4d48bee12193245240036bd5c571f2c87b
[mips] Support 9-bit offsets for the 'R' inline assembly memory constraint.

Summary:
The 'R' constraint is actually supposed to be much more complicated than
this and is defined in terms of whether it will cause macro expansion in
the assembler. 'R' is getting less useful due to architecture changes and
ought to be replaced by other constraints. We therefore implement 9-bit
offsets which will work for all subtargets and all instructions.

Reviewers: vkalintiris

Reviewed By: vkalintiris

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D8440

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