Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / InstCombine / 2002-05-14-SubFailure.ll
1 ; Instcombine was missing a test that caused it to make illegal transformations
2 ; sometimes.  In this case, it transforms the sub into an add:
3 ; RUN: echo foo
4 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep add
5 ;
6
7
8 int "test"(int %i, int %j) {
9         %A = mul int %i, %j
10         %B = sub int 2, %A
11         ret int %B
12 }