[mips] Changed the way symbols are handled in dla and la instructions to allow simple...
authorDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 5 Oct 2015 13:19:29 +0000 (13:19 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 5 Oct 2015 13:19:29 +0000 (13:19 +0000)
commitfbdf2017eab1c9c16faaf80dc31df83820dec2ab
tree4ce472624fde1539569027d1a48eaf0c7f209497
parent9fdd48c18421d9d050740522cfe189e1aebe59d2
[mips] Changed the way symbols are handled in dla and la instructions to allow simple expressions.

Summary:
An instruction like "(d)la $5, symbol+8" previously would have crashed the
assembler as it contains an expression. This is now fixed.
A few tests cases have also been changed to reflect these changes, however
these should only be syntax changes. Some new test cases have also been
added.

Patch by Scott Egerton.

Reviewers: vkalintiris, dsanders

Subscribers: llvm-commits

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

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