[PATCH] D41949: [RISCV] [WIP] implement li pseudo instruction
Mario Werner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 11 06:52:11 PST 2018
niosHD created this revision.
niosHD added a reviewer: asb.
Herald added subscribers: sabuasal, apazos, jordy.potman.lists, simoncook, johnrusso, rbar, arichardson, sdardis.
The implementation follows the MIPS backend and expands the pseudo instruction directly during asm parsing. As the result, only real MC instructions are emitted to the MCStreamer.
Currently only support for 32-bit constants is implemented. Support for 64-bit constants (on RV64) will be added when the overall approach is approved. Comments are welcome. :)
https://reviews.llvm.org/D41949
Files:
lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
lib/Target/RISCV/RISCVInstrFormats.td
lib/Target/RISCV/RISCVInstrInfo.td
test/MC/RISCV/rv32i-aliases-invalid.s
test/MC/RISCV/rv64i-aliases-invalid.s
test/MC/RISCV/rvi-aliases-valid.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41949.129446.patch
Type: text/x-patch
Size: 10371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180111/7c801d6d/attachment.bin>
More information about the llvm-commits
mailing list