Fold fptrunc(add (fpextend x), (fpextend y)) -> add(x,y), as GCC does.
[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 | \
4 ; RUN:    grep sext.*i32
5
6 bool %test(short %X) {
7     %A = cast short %X to uint
8     %B = setgt uint %A, 1330
9     ret bool %B
10 }