This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Fix vector load/store whole register inst encoding
AbandonedPublic

Authored by frasercrmck on Mar 8 2021, 7:43 AM.

Details

Summary

The nf field of the RVV vector load/store whole register instructions
(Section 7.9) "encodes the number of vector registers to transfer,
numbered successively after the base". Or, the log2 of the number of
registers to transfer. We were previously encoding it naively as
1/2/4/8, the last of which doesn't even fit in the 3-bit field.

Diff Detail