New testcase crashing the instruction combiner
[oota-llvm.git] / test / Transforms / InstCombine / 2002-12-05-MissedConstProp.ll
1 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep add
2
3 int %test(int %A) {
4   %A.neg = sub int 0, %A
5   %.neg = sub int 0, 1
6   %X = add int %.neg, 1
7   %Y.neg.ra = add int %A, %X
8   %r = add int %A.neg, %Y.neg.ra
9   ret int %r
10 }