llvm-project
llvm-project copied to clipboard
[RISCV] Incorrect definition of InsnCI
According to the spec:
26.2. Compressed Instruction Formats CR, CI, and CSS can use any of the 32 RVI registers, but CIW, CL, CS, CA, and CB are limited to just 8 of them.
But the definition in RISCVInstrInfoC.td has it taking AnyRegC. This should be AnyReg.
def InsnCI : DirectiveInsnCI<(outs AnyRegC:$rd), (ins uimm2_opcode:$opcode,
@llvm/issue-subscribers-backend-risc-v
Author: Sudharsan Veeravalli (svs-quic)
According to the spec:
> 26.2. Compressed Instruction Formats > CR, CI, and CSS can use any of the 32 RVI registers, but CIW, CL, CS, CA, and CB are limited to just 8 of them.
But the definition in RISCVInstrInfoC.td has it taking AnyRegC. This should be AnyReg.
def InsnCI : DirectiveInsnCI<(outs AnyRegC:$rd), (ins uimm2_opcode:$opcode,