Commit 6d489f8
RISC-V: Add vector state registers
`vxsat` (vector fixed-point saturation flag) and `vxrm` (vector
fixed-point rounding mode) are subset, readable/writable mirrors of the
`vcsr` register. Still, adding them to the default preserved
register list will improve clarity.
* `vcsr`
* Bit 0–0 mirror: `vxsat`
* Bit 1–2 mirror: `vxrm`
Note that, the reason `vxrm` (rounding mode register which normally
the developer writes) is in the list is, it is not preserved across
calls on all ratified ABIs.
Quoting `asm.rules.preserves_flags`,
> As a general rule, the flags covered by `preserves_flags` are those
> which are not preserved when performing a function call.1 parent e5a1af4 commit 6d489f8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1343 | 1343 | | |
1344 | 1344 | | |
1345 | 1345 | | |
1346 | | - | |
| 1346 | + | |
1347 | 1347 | | |
1348 | 1348 | | |
1349 | 1349 | | |
| |||
0 commit comments