fix PR4963: folding insertvalue would sometimes turn a packed struct into
[llvm/avr.git] / test / Transforms / InstCombine / 2006-02-13-DemandedMiscompile.ll
blob10541ef703255a32efffae055ea3cfc1f83a1e74
1 ; RUN: opt < %s -instcombine -S | \
2 ; RUN:   not grep undef
4 define i32 @test(i8 %A) {
5         %B = sext i8 %A to i32          ; <i32> [#uses=1]
6         %C = ashr i32 %B, 8             ; <i32> [#uses=1]
7         ret i32 %C