HomePhabricator

[NFC][CodeGen][X86][AArch64] Add and-const-mask + const-shift pattern tests

Authored by lebedev.ri on May 14 2019, 1:17 PM.

Description

[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

Details

Committed
lebedev.riMay 14 2019, 1:17 PM
Parents
rGdc2f5f9ff81d: Fix ASTMerge/namespace/test.cpp after r360701
Branches
Unknown
Tags
Unknown