[X86] Add test cases for missed opportunities to use vpternlog due to a bitcast betwe...
authorCraig Topper <craig.topper@intel.com>
Sat, 11 Jul 2020 19:21:41 +0000 (12:21 -0700)
committerCraig Topper <craig.topper@intel.com>
Sat, 11 Jul 2020 19:54:52 +0000 (12:54 -0700)
commit47872adf6ae236c798d05b7229e00f363ab2fe0f
tree5bc126aaeb90fc1fd42d8de2c02f4dbdc5764bb3
parentd8c35031a39e7b1bf9524ddd325c7a91dbb05f1d
[X86] Add test cases for missed opportunities to use vpternlog due to a bitcast between the logic ops.

These test cases fail to use vpternlog because the AND was converted
to a blend shuffle and then converted back to AND during shuffle lowering.
This results in the AND having a different type than it started with.
This prevents our custom matching logic from seeing the two logic ops.
llvm/test/CodeGen/X86/avx512-logic.ll
llvm/test/CodeGen/X86/avx512vl-logic.ll