Convert scripts from using explicit control flow to use the new grep-not script
[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: as < %s | opt -instcombine | dis | grep-not 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 }