[RISCV] Add test case to show incorrect matching to sroiw when the or mask does not...
authorCraig Topper <craig.topper@sifive.com>
Fri, 6 Nov 2020 18:29:22 +0000 (10:29 -0800)
committerCraig Topper <craig.topper@sifive.com>
Fri, 6 Nov 2020 18:58:59 +0000 (10:58 -0800)
commit16dccf716a721ac757805104263e89a12898642e
treee00efae45a2638a98a4de89a1429bf6cf676e55e
parenta585228027a0f025011d77916234cfba12e44309
[RISCV] Add test case to show incorrect matching to sroiw when the or mask does not have 1s in the upper 32 bits.

The matching code for sroiw is truncating the mask to 32 bits before
checking its value. We need to check all 64 bits.
llvm/test/CodeGen/RISCV/rv64Zbb.ll