[mips] Add assembler support for the "la $reg,symbol" pseudo-instruction.
authorToma Tabacu <toma.tabacu@imgtec.com>
Thu, 14 Aug 2014 10:29:17 +0000 (10:29 +0000)
committerToma Tabacu <toma.tabacu@imgtec.com>
Thu, 14 Aug 2014 10:29:17 +0000 (10:29 +0000)
commitcb43f81fc54572b1dddec2370b2583e3f69a1bfc
tree2c20de97b4b4b65bbc4b57fb32ee31a65cedf6ee
parent74ad5958eed510ef1a376aaaaea980649165c2e2
[mips] Add assembler support for the "la $reg,symbol" pseudo-instruction.

Summary:
This pseudo-instruction allows the programmer to load an address from a symbolic expression into a register.

Patch by David Chisnall.
His work was sponsored by: DARPA, AFRL

I've made some minor changes to the original, such as improving the formatting and adding some comments, and I've also added a test case.

Reviewers: dsanders

Reviewed By: dsanders

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

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