[NFC][CodeGen][X86][AArch64] Add and-const-mask + const-shift pattern tests
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 14 May 2019 20:17:04 +0000 (20:17 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 14 May 2019 20:17:04 +0000 (20:17 +0000)
commit7baf528aba22edcd0561bdc823c2d7c44aea4395
tree3c2d2b4a4593c006cfca9082c9242716744b894b
parentdc2f5f9ff81dbc4f963adf023fadea3404d084e5
[NFC][CodeGen][X86][AArch64] Add and-const-mask + const-shift pattern tests

Unlike instcombine, we currently don't turn and+shift into shift+and.
We probably should, likely unconditionally.

While i'm adding only all-ones (potentially shifted) mask,
this obviously isn't limited to any particular mask pattern:
https://rise4fun.com/Alive/kmX

Related to https://bugs.llvm.org/show_bug.cgi?id=41874

llvm-svn: 360706
llvm/test/CodeGen/AArch64/const-shift-of-constmasked.ll [new file with mode: 0644]
llvm/test/CodeGen/AArch64/vector_splat-const-shift-of-constmasked.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/const-shift-of-constmasked.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/vector_splat-const-shift-of-constmasked.ll [new file with mode: 0644]