Eliminate more redundant llvm-as calls.
[oota-llvm.git] / test / Transforms / InstCombine / cast-sext-zext.ll
1 ; RUN: opt < %s -instcombine -S | not grep sext
2 ; XFAIL: *
3
4 define zeroext i16 @t(i8 zeroext %on_off, i16* nocapture %puls) nounwind readonly {
5 entry:
6         %0 = zext i8 %on_off to i32
7         %1 = add i32 %0, -1
8         %2 = sext i32 %1 to i64
9         %3 = getelementptr i16* %puls, i64 %2
10         %4 = load i16* %3, align 2
11         ret i16 %4
12 }