llvm-project
75ca080d - [RISCV][Xqccmp] Correctly Parse/Disassemble pushfp (#133188)

Commit
265 days ago
[RISCV][Xqccmp] Correctly Parse/Disassemble pushfp (#133188) In the `qc.cm.pushfp` instruction, it is like `cm.pushfp` except in one important way - `qc.cm.pushfp {ra}, -N*16` is not a valid encoding, because this would update `s0`/`fp`/`x8` without saving it. This change now correctly rejects this variant of the instruction, both during parsing and during disassembly. I also implemented validation for immediates that represent register lists (both kinds), which may help to catch bugs in the future.
Author
Parents
Loading