apint-and-compare.ll 424 B

12345678910111213141516
  1. ; RUN: opt < %s -instcombine -S | grep and | count 2
  2. ; Should be optimized to one and.
  3. define i1 @test1(i33 %a, i33 %b) {
  4. %tmp1 = and i33 %a, 65280
  5. %tmp3 = and i33 %b, 65280
  6. %tmp = icmp ne i33 %tmp1, %tmp3
  7. ret i1 %tmp
  8. }
  9. define i1 @test2(i999 %a, i999 %b) {
  10. %tmp1 = and i999 %a, 65280
  11. %tmp3 = and i999 %b, 65280
  12. %tmp = icmp ne i999 %tmp1, %tmp3
  13. ret i1 %tmp
  14. }