[PATCH] D42834: [RISCV] Implement c.lui immedate operand constraint

Shiva Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 04:13:46 PST 2018


shiva0217 updated this revision to Diff 135396.
shiva0217 added a comment.

Hi Alex. You're right. RISCVGenMCCodeEmitter.inc generated by tablegen will create mask according to the bit-field width defined in *.td. Upper bit's will filter out by the mask, so we don't have to define custom encoding method for c.lui. Thanks!


Repository:
  rL LLVM

https://reviews.llvm.org/D42834

Files:
  lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
  lib/Target/RISCV/Disassembler/RISCVDisassembler.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.135396.patch
Type: text/x-patch
Size: 5534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180222/f014d98f/attachment.bin>


More information about the llvm-commits mailing list