[PATCH] D42834: [RISCV] Implement c.lui immedate operand constraint
Shiva Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 2 00:28:36 PST 2018
shiva0217 created this revision.
shiva0217 added reviewers: asb, apazos.
Herald added subscribers: niosHD, sabuasal, jordy.potman.lists, simoncook, johnrusso, rbar.
Implement c.lui immediate constraint to [1, 31] and [0xfffe0, 0xfffff] as RISCV GCC.
[0xfffe0, 0xfffff] eventually will encode as [32, 63] as ISA describe.
The benefit is that the transformation from lui to c.lui could check the immediate range of c.lui directly.
Repository:
rL LLVM
https://reviews.llvm.org/D42834
Files:
lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
lib/Target/RISCV/InstPrinter/RISCVInstPrinter.cpp
lib/Target/RISCV/InstPrinter/RISCVInstPrinter.h
lib/Target/RISCV/MCTargetDesc/RISCVMCCodeEmitter.cpp
lib/Target/RISCV/RISCVInstrInfoC.td
test/MC/RISCV/rv32c-invalid.s
test/MC/RISCV/rv32c-valid.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42834.132541.patch
Type: text/x-patch
Size: 8254 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180202/d63184c3/attachment.bin>
More information about the llvm-commits
mailing list