llvm-6502/test/Transforms/InstCombine/2002-05-14-SubFailure.ll
Chris Lattner 060c1f816c Remove usage of grep-not script
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6966 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-28 23:32:04 +00:00

13 lines
302 B
LLVM

; Instcombine was missing a test that caused it to make illegal transformations
; sometimes. In this case, it transforms the sub into an add:
; RUN: echo foo
; RUN: as < %s | opt -instcombine | dis | not grep add
;
int "test"(int %i, int %j) {
%A = mul int %i, %j
%B = sub int 2, %A
ret int %B
}