For PR950:
[oota-llvm.git] / test / Transforms / InstCombine / zext.ll
1 ; Tests to make sure elimination of casts is working correctly
2 ; RUN: llvm-as < %s | opt -instcombine -disable-output &&
3 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | notcast '' '%c1.*'
4
5 long %test_sext_zext(short %A) {
6     %c1 = zext short %A to uint
7     %c2 = sext uint %c1 to long
8     ret long %c2
9 }