[PATCH] D55277: [RISCV] Match GNU tools canonical JALR and add aliases

James Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 4 08:45:14 PST 2018


jrtc27 created this revision.
jrtc27 added a reviewer: asb.
Herald added subscribers: llvm-commits, jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, mgrang, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, apazos, simoncook, johnrusso, rbar.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D55277

Files:
  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/rv32i-valid.s
  test/MC/RISCV/rvi-aliases-valid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55277.176650.patch
Type: text/x-patch
Size: 7034 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181204/dd74ebc4/attachment.bin>


More information about the llvm-commits mailing list