[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)
commitd0a7ff2ed72dc7ce47379bab0856bc48ba294172
tree9f5a37fc87a86d5532509c74717e375decbf6c28
parente3ebce6bdf0315ac8aed08289ac925b178672013
[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

llvm-svn: 237255
llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
llvm/test/MC/Mips/micromips-expansions.s
llvm/test/MC/Mips/mips-expansions-bad.s
llvm/test/MC/Mips/mips-expansions.s