fix PR4963: folding insertvalue would sometimes turn a packed struct into
[llvm/avr.git] / test / Transforms / InstCombine / shl-trunc.ll
blob84af2e3361038fccdb156b885a6cdd61f11c06d0
1 ; RUN: opt < %s -instcombine -S | grep shl
3 define i1 @test(i32 %X, i8 %A) {
4         %shift.upgrd.1 = zext i8 %A to i32              ; <i32> [#uses=1]
5         %B = lshr i32 %X, %shift.upgrd.1                ; <i32> [#uses=1]
6         %D = trunc i32 %B to i1         ; <i1> [#uses=1]
7         ret i1 %D