2b596936409336bc3c226d817f9c7478862d122f
[oota-llvm.git] / test / Transforms / InstCombine / apint-zext1.ll
1 ; Tests to make sure elimination of casts is working correctly
2 ; This test is for Integer BitWidth <= 64 && BitWidth % 2 != 0.
3 ; RUN: opt < %s -instcombine -S | notcast {} {%c1.*}
4
5 define i47 @test_sext_zext(i11 %A) {
6     %c1 = zext i11 %A to i39
7     %c2 = sext i39 %c1 to i47
8     ret i47 %c2
9 }