Add test case for testing InstCombine with arbitrary precision integer
[oota-llvm.git] / test / Transforms / InstCombine / apint-zext2.ll
1 ; Tests to make sure elimination of casts is working correctly
2 ; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
3 ; RUN: llvm-as < %s | opt -instcombine -disable-output &&
4 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | notcast '' '%c1.*'
5
6 define i1024 @test_sext_zext(i77 %A) {
7     %c1 = zext i77 %A to i533
8     %c2 = sext i533 %c1 to i1024
9     ret i1024 %c2
10 }