OSDN Git Service

[RISCV] Add assembler support for LA pseudo-instruction
authorAlex Bradbury <asb@lowrisc.org>
Fri, 15 Feb 2019 09:53:32 +0000 (09:53 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Fri, 15 Feb 2019 09:53:32 +0000 (09:53 +0000)
commit384f64397f6ad95a361b72d62c07d7bac9f24163
tree1b7f0747429d78abd6ea1d3159dfd4c7708fd849
parent6ea38efaaa1e0d829a305476589d50fdcb600e57
[RISCV] Add assembler support for LA pseudo-instruction

This patch also introduces the emitAuipcInstPair helper, which is then used
for both emitLoadAddress and emitLoadLocalAddress.

Differential Revision: https://reviews.llvm.org/D55325
Patch by James Clarke.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354111 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
lib/Target/RISCV/RISCVInstrInfo.td
test/MC/RISCV/rvi-pseudos-invalid.s [new file with mode: 0644]
test/MC/RISCV/rvi-pseudos.s