[RISCV] Add IsRV32 to the isel pattern for ZIP_RV32/UNZIP_RV32. NFC
authorCraig Topper <craig.topper@sifive.com>
Sat, 19 Feb 2022 06:38:13 +0000 (22:38 -0800)
committerCraig Topper <craig.topper@sifive.com>
Sat, 19 Feb 2022 06:38:14 +0000 (22:38 -0800)
commit5489969550a28a5ef63b6e242469b6eb96b2fbbd
tree49de6995bc3a0be2a94ab07f1285b25a7f15d3b8
parent1df8efae56b590a58123499d2bb8ffcd1f36fc40
[RISCV] Add IsRV32 to the isel pattern for ZIP_RV32/UNZIP_RV32. NFC

I think the i32 in the pattern prevents this from matching on RV64,
but using IsRV32 is safer.

Add tests for RV64 to make sure we don't print zip or unzip
because we incorrectly picked ZIP_RV32/UNZIP_RV32.
llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
llvm/test/CodeGen/RISCV/rv64zbp-intrinsic.ll