Home | History | Annotate | Download | only in InstCombine
      1 ; RUN: opt < %s -instcombine -S | grep "ret i.* 0" | count 2
      2 ; PR2048
      3 
      4 define i32 @i(i32 %a) {
      5   %tmp1 = sdiv i32 %a, -1431655765
      6   %tmp2 = sdiv i32 %tmp1, 3
      7   ret i32 %tmp2
      8 }
      9 
     10 define i8 @j(i8 %a) {
     11   %tmp1 = sdiv i8 %a, 64
     12   %tmp2 = sdiv i8 %tmp1, 3
     13   ret i8 %tmp2
     14 }
     15