Test for the the problem with xors being changed into ands
authorJoel Jones <joel_k_jones@apple.com>
Thu, 19 Apr 2012 20:54:44 +0000 (20:54 +0000)
committerJoel Jones <joel_k_jones@apple.com>
Thu, 19 Apr 2012 20:54:44 +0000 (20:54 +0000)
commitc8969fd2919ac99bfd2fa07a6885659d804101c6
treee5148257f968685d560b576141347f0ad5f318d1
parentadea497673dab74b08fa2546e69619f1abe55662
Test for the the problem with xors being changed into ands
when the set bits aren't the same for both args of the xor.
This transformation is in the function TargetLowering::SimplifyDemandedBits
in the file lib/CodeGen/SelectionDAG/TargetLowering.cpp.

I have tested this test using a previous version of llc which the defect and
the a version of llc which does not. I got the expected fail and pass,
respectively.

This test goes with rdar://11195364 and the check in with the fix: svn r154955

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155156 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/X86/targetLoweringGeneric.ll [new file with mode: 0644]