Teach InstructionSimplify to fold (A & B) & A -> A & B and (A | B) | A -> A | B.
[oota-llvm.git] / test / Transforms / InstCombine / sdiv-shift.ll
1 ; RUN: opt < %s -instcombine -S | not grep div
2
3 define i32 @a(i16 zeroext %x, i32 %y) nounwind {
4 entry:
5         %conv = zext i16 %x to i32
6         %s = shl i32 2, %y
7         %d = sdiv i32 %conv, %s
8         ret i32 %d
9 }