1 ; This test case checks that the merge of and/xor can work on arbitrary
4 ; RUN: opt < %s -instcombine -S | grep and | count 1
5 ; RUN: opt < %s -instcombine -S | grep xor | count 2
7 ; (x &z ) ^ (y & z) -> (x ^ y) & z
8 define i57 @test1(i57 %x, i57 %y, i57 %z) {
10 %tmp6 = and i57 %z, %y
11 %tmp7 = xor i57 %tmp3, %tmp6
15 ; (x & y) ^ (x | y) -> x ^ y
16 define i23 @test2(i23 %x, i23 %y, i23 %z) {
17 %tmp3 = and i23 %y, %x
19 %tmp7 = xor i23 %tmp3, %tmp6