Fix c.addi and c.addi16sp immediate constraints which should be non-zero in the range.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D42782
[RISCV] Fix c.addi and c.addi16sp immediate constraints which should be non-zero ClosedPublic Authored by shiva0217 on Jan 31 2018, 10:11 PM.
Details Summary Fix c.addi and c.addi16sp immediate constraints which should be non-zero in the range.
Diff Detail
Event TimelineHerald added subscribers: niosHD, sabuasal, jordy.potman.lists and 3 others. · View Herald TranscriptJan 31 2018, 10:11 PM This revision is now accepted and ready to land.Feb 1 2018, 6:30 AM Closed by commit rL324055: [RISCV] Fix c.addi and c.addi16sp immediate constraints which should be non-zero (authored by shiva). · Explain WhyFeb 1 2018, 6:45 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 132327 lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
lib/Target/RISCV/RISCVInstrInfoC.td
test/MC/RISCV/rv32c-invalid.s
|
Nitpick. Wouldn't be better testing Imm is zero once we know Imm is a constant?