llvm-project
5928fc42 - [RISCV] Use uimm3/4/5/6_plus1 for (P)SATI instructions. (#186541)

Commit
36 days ago
[RISCV] Use uimm3/4/5/6_plus1 for (P)SATI instructions. (#186541) The encoded immediate is the number of trailing 1s in the maximum value. Mailing list discussion has a preference to print and parse this value plus one. https://lists.riscv.org/g/tech-p-ext/message/910 With this patch, saturating to a signed 8-bit integer would be "sati a0, a0, 8". Previously it was "sati a0, a0, 7". This is reflected in version 0.20 of the adoc spec here https://github.com/riscv/riscv-p-spec/pull/226. I have updated our RISCVUsage.rst to point to the adoc version of the spec.
Author
Parents
Loading