[PATCH] D41216: [RISCV] Change shift amount operand of RVC shift instructions to uimmlog2xlennonzero

Shiva Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 13 18:02:23 PST 2017


shiva0217 created this revision.
shiva0217 added a reviewer: asb.
Herald added subscribers: sabuasal, jordy.potman.lists, johnrusso, rbar.

c.slli/c.srli/c.srai shift amount constraint should accrding to rv32/rv64.
For rv32, shift amount constraint should be [1, 31].
For rv64, shift amount constraint should be [1, 63].

Add uimmlog2xlennonzero to reflect the constraints.


Repository:
  rL LLVM

https://reviews.llvm.org/D41216

Files:
  lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
  lib/Target/RISCV/RISCVInstrInfoC.td
  test/MC/RISCV/rv32c-invalid.s
  test/MC/RISCV/rv64c-invalid.s
  test/MC/RISCV/rv64c-valid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41216.126880.patch
Type: text/x-patch
Size: 5687 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171214/4a3f66c5/attachment.bin>


More information about the llvm-commits mailing list