Home | History | Annotate | Download | only in InstCombine
      1 ; RUN: opt < %s -instcombine -disable-output
      2 ; PR1817
      3 
      4 define i1 @test1(i32 %X) {
      5 	%A = icmp slt i32 %X, 10
      6 	%B = icmp ult i32 %X, 10
      7 	%C = and i1 %A, %B
      8 	ret i1 %C
      9 }
     10 
     11 define i1 @test2(i32 %X) {
     12 	%A = icmp slt i32 %X, 10
     13 	%B = icmp ult i32 %X, 10
     14 	%C = or i1 %A, %B
     15 	ret i1 %C
     16 }
     17