Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / InstCombine / 2006-10-19-SignedToUnsignedCastAndConst.ll
1 ; This test case is reduced from llvmAsmParser.cpp
2 ; The optimizer should not remove the cast here.
3 ; RUN: llvm-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | grep 'sext.*int'
4
5 bool %test(short %X) {
6     %A = cast short %X to uint
7     %B = setgt uint %A, 1330
8     ret bool %B
9 }