18 lines · plain
1; This test makes sure that the xor instructions are properly eliminated2; when arbitrary precision integers are used.3 4; RUN: opt < %s -passes=instcombine -S | not grep xor5 6define i33 @test1(i33 %A) {7 %B = xor i33 %A, -18 %C = xor i33 %B, -19 ret i33 %C10}11 12define i1 @test2(i52 %A, i52 %B) {13 %cond = icmp ule i52 %A, %B ; Can change into uge14 %Ret = xor i1 %cond, true15 ret i1 %Ret16}17 18