[X86] Add a test for missed opportunity combine AND32rm+TEST32rr.
authorCraig Topper <craig.topper@sifive.com>
Wed, 3 Aug 2022 21:28:24 +0000 (14:28 -0700)
committerCraig Topper <craig.topper@sifive.com>
Wed, 3 Aug 2022 21:33:26 +0000 (14:33 -0700)
commit11322203b7ba60a85408286fcf9971d1b6cf06a1
tree35c7e880418eb09afe1a87f48340f356a6f73594
parent2b61b770df813539b38b620efcae8fd3d11faad2
[X86] Add a test for missed opportunity combine AND32rm+TEST32rr.

If the chain output of the AND32rm is used, the post isel peephole
won't fold it. We should be able to fold it by replacing the chain
use with the chain from a TEST32rm.
llvm/test/CodeGen/X86/cmp.ll