1 ; RUN: opt < %s -instcombine -S | grep and | count 1
2 ; RUN: opt < %s -instcombine -S | grep xor | count 2
4 ; (x&z) ^ (y&z) -> (x^y)&z
5 define i32 @test1(i32 %x, i32 %y, i32 %z) {
8 %tmp7 = xor i32 %tmp3, %tmp6
12 ; (x & y) ^ (x|y) -> x^y
13 define i32 @test2(i32 %x, i32 %y, i32 %z) {
14 %tmp3 = and i32 %y, %x
16 %tmp7 = xor i32 %tmp3, %tmp6