This implements the Zawrs extension as specified here: https://github.com/riscv/riscv-zawrs/releases/download/V1.0-rc3/Zawrs.pdf. Despite the 1.0 version name, this does not appear to have been ratified, so putting it under experimental for the moment. I have been told that the current version is near final, and unlikely to change (again), but have nothing to cite on that.
This change adds assembly support, but does not include C language or IR intrinsics. We can decide if we want them, and handle that in a separate patch.
There were two prior attempts at implementing this.
D128235 by @palmer-dabbelt implements a prior version of this extension. Very annoyingly, the specification appears to have changed *without* a change in version number. This patch also didn't make the extension experimental.
D129462 by @sunshaoce implements the current version, but was abandoned due to confusion with the prior. Additionally, it's missing a few tests. I took the .td file change and the valid assembly test from that change.
This doesn't really belong here, but a separate RISCVInstrInfoZawrs.td also seems a little overkill... hmm