[RISCV] Add a test case to show a bug in SelectRORIW. NFC
authorCraig Topper <craig.topper@sifive.com>
Mon, 2 Nov 2020 04:24:09 +0000 (20:24 -0800)
committerCraig Topper <craig.topper@sifive.com>
Mon, 2 Nov 2020 04:30:55 +0000 (20:30 -0800)
commit530bc22f280e31a00f3845baee905a77424a1e6b
treef222878d291473525275ff45c3ccb57e566334d2
parent5547d69e541d5587c7982fed4753f14c4ee85f35
[RISCV] Add a test case to show a bug in SelectRORIW. NFC

The function is matching (sext_inreg (or (shl X, C2), (shr (and Y, C3), C1))),
with appropriate checks for the constants to be a rotate. But it
fails to check that X and Y are the same which is also necessary.
llvm/test/CodeGen/RISCV/rv64Zbbp.ll