[RISCV] Add tests that do a bitreverse before or after a bswap. NFC

We don't optimize this as well as we could. Bitreverse is always
expanded to bswap and a shift/and/or sequence to swap bits within a
byte. The newly created bswap will either becomes a shift/and/or
sequence or rev8 instruction. We don't always realize the bswap is
redundant with another bswap before or after the bitreverse.

Found while thinking about the brev8 instruction from the
Cryptography extension. It's equivalent to bswap(bitreverse(x)) or
bitreverse(bswap(x)).
This commit is contained in:
Craig Topper 2022-01-23 13:37:33 -08:00
parent 88f33cff4b
commit 3575700b28
1 changed files with 1064 additions and 54 deletions

File diff suppressed because it is too large Load Diff