[X86] Add test cases for turning (and (shl X, C1), C2) into (shl (and X, (C1 >> C2...
authorCraig Topper <craig.topper@intel.com>
Fri, 19 Apr 2019 05:48:09 +0000 (05:48 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 19 Apr 2019 05:48:09 +0000 (05:48 +0000)
commit2099ccbe1ffbc0a71fef992ad8ad15164c450cc0
tree26f351d532632728d045041517c5e00f002104c4
parentf73caae956a675c3fa2358b3ade7e67850064d2a
[X86] Add test cases for turning (and (shl X, C1), C2) into (shl (and X, (C1 >> C2), C2) when the AND could match to a movzx.

We already reorder when C1 >> C2 would allow a smaller immediate encoding.

llvm-svn: 358736
llvm/test/CodeGen/X86/narrow-shl-cst.ll