brintos

brintos / llvm-project-archived public Read only

0
0
Text · 431 B · 55ff1d1 Raw
17 lines · plain
1; RUN: opt < %s -passes=instcombine -S | grep and | count 22 3; Should be optimized to one and.4define i1 @test1(i33 %a, i33 %b) {5        %tmp1 = and i33 %a, 652806        %tmp3 = and i33 %b, 652807        %tmp = icmp ne i33 %tmp1, %tmp38        ret i1 %tmp9}10 11define i1 @test2(i999 %a, i999 %b) {12        %tmp1 = and i999 %a, 6528013        %tmp3 = and i999 %b, 6528014        %tmp = icmp ne i999 %tmp1, %tmp315        ret i1 %tmp16}17