OSDN Git Service

[RISCV] Match GNU tools canonical JALR and add aliases
authorAlex Bradbury <asb@lowrisc.org>
Tue, 16 Jul 2019 04:56:43 +0000 (04:56 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Tue, 16 Jul 2019 04:56:43 +0000 (04:56 +0000)
commit4926f35b282f5ed9635031a5ecc944da37512a6c
tree8d8a12fa9d4a269bf412202e75cd3c4ba1267e7e
parentc3f211d97bb0203fefdf5624fc672192b821a8f0
[RISCV] Match GNU tools canonical JALR and add aliases

The canonical GNU form of JALR resembles a load/store instruction rather
than placing the immediate offset as a separate argument, so match this
behaviour. Also add parser-only aliases for the three-operand form, and
add other shorter aliases also emitted by GNU tools.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366179 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/RISCVInstrInfo.td
test/CodeGen/RISCV/branch-relaxation.ll
test/CodeGen/RISCV/indirectbr.ll
test/CodeGen/RISCV/option-rvc.ll
test/MC/RISCV/compress-rv32i.s
test/MC/RISCV/fixups.s
test/MC/RISCV/rv32e-valid.s
test/MC/RISCV/rv32i-valid.s
test/MC/RISCV/rvi-aliases-valid.s