[InstCombine] Add or(shl(v,and(x,bw-1)),lshr(v,bw-and(x,bw-1))) rotate tests
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 3 Oct 2020 16:10:44 +0000 (17:10 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 3 Oct 2020 16:17:42 +0000 (17:17 +0100)
commitb82a7486d108a708f00c00feed784f34711300db
treeccc6a0d16a882007489c325fefa29b203c1b62d7
parent78530ce65375fa02bc96019e5cc9d73db8adaca4
[InstCombine] Add or(shl(v,and(x,bw-1)),lshr(v,bw-and(x,bw-1))) rotate tests

If we know the shift amount is less than the bitwidth we should be able to convert this to a rotate/funnel shift
llvm/test/Transforms/InstCombine/rotate.ll