1 ; This test makes sure that the xor instructions are properly eliminated
2 ; when arbitrary precision integers are used.
4 ; RUN: opt < %s -instcombine -S | not grep xor
6 define i33 @test1(i33 %A) {
12 define i1 @test2(i52 %A, i52 %B) {
13 %cond = icmp ule i52 %A, %B ; Can change into uge
14 %Ret = xor i1 %cond, true
18 ; Test that demorgans law can be instcombined
19 define i47 @test3(i47 %A, i47 %B) {
27 ; Test that demorgens law can work with constants
28 define i61 @test4(i61 %A, i61 %B) {
30 %c = and i61 %a, 5 ; 5 = ~c2
35 ; test the mirror of demorgans law...
36 define i71 @test5(i71 %A, i71 %B) {