[mips] [IAS] Unify common functionality of LA and LI.
authorToma Tabacu <toma.tabacu@imgtec.com>
Wed, 13 May 2015 13:56:16 +0000 (13:56 +0000)
committerToma Tabacu <toma.tabacu@imgtec.com>
Wed, 13 May 2015 13:56:16 +0000 (13:56 +0000)
commitc617a13a2e4d7794cf7c3b1bd6a1b06bbe789979
tree43f6862199b8d35fe6cf76c9cb324e094d62b383
parente8dceea402259651fca27c616a35227ad2971a91
[mips] [IAS] Unify common functionality of LA and LI.

Summary: A side-effect of this is that LA gains proper handling of unsigned and positive signed 16-bit immediates and more accurate error messages.

Reviewers: dsanders

Reviewed By: dsanders

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237255 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
test/MC/Mips/micromips-expansions.s
test/MC/Mips/mips-expansions-bad.s
test/MC/Mips/mips-expansions.s