This patch allows immediates (and CSR alias immediates) which start with a tilde token or an exclaim (!) token to be parsed as intended.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
There's also AsmToken::Exclaim for logical not that we could allow (although that's not one I've ever seen in real-world assembly). Please add tests for the CSR change?
Comment Actions
It would probably be good to add that for completeness. machine-csr-names.s seems a good place to add CSR tests?
Comment Actions
LGTM, thanks!
test/MC/RISCV/rv32i-valid.s | ||
---|---|---|
343 ↗ | (On Diff #183863) | Should be updated to csrrw s0, fflags, s1 to match current HEAD behaviour. |