[RISCV] Add more tests for (and (shl x, C2), C1) that can be improved by using a...
authorCraig Topper <craig.topper@sifive.com>
Thu, 23 Sep 2021 20:57:00 +0000 (13:57 -0700)
committerCraig Topper <craig.topper@sifive.com>
Thu, 23 Sep 2021 21:18:07 +0000 (14:18 -0700)
commit8811227a0c0ac398857988b4fce0fb4dc699468b
treef9012ba7354bf1320c65aa18636dd5ef5118d66f
parent093245ed9ee495146b3478447473ad21ae237cb1
[RISCV] Add more tests for (and (shl x, C2), C1) that can be improved by using a pair of shifts. NFC

These tests have C1 as a shifted mask having no leading zeros and
C3 trailing zeros. If C3 is more than C2, we can select this as
(slli (srli x, C3-C2), C3).
llvm/test/CodeGen/RISCV/shift-and.ll