Commit bbda21b
[RISCV] Make RISCVInstrInfo::verifyInstruction stricter for immediate-only operands (llvm#170736)
Most of the immediate operands can only be an immediate, but we were
allowing any non-register operand.
Split the immediate-only from the immediate or non-register operands.
The non-register cases could be made even stricter, but I'll leave that
as a TODO.1 parent d593d58 commit bbda21b
File tree
4 files changed
+228
-186
lines changed- llvm
- lib/Target/RISCV
- MCTargetDesc
- tools/llvm-exegesis/lib/RISCV
4 files changed
+228
-186
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
397 | 396 | | |
398 | 397 | | |
399 | 398 | | |
| |||
412 | 411 | | |
413 | 412 | | |
414 | 413 | | |
415 | | - | |
416 | 414 | | |
417 | 415 | | |
418 | 416 | | |
419 | 417 | | |
420 | 418 | | |
421 | | - | |
422 | 419 | | |
423 | 420 | | |
424 | 421 | | |
| |||
447 | 444 | | |
448 | 445 | | |
449 | 446 | | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
450 | 456 | | |
451 | 457 | | |
452 | 458 | | |
| |||
0 commit comments