New testcase pointed out by Casey Carter

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4934 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-12-05 22:25:47 +00:00
parent c102cb7359
commit c41ab22492

View File

@ -0,0 +1,13 @@
; RUN: if as < %s | opt -instcombine | dis | grep add
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
int %test(int %A) {
%A.neg = sub int 0, %A
%.neg = sub int 0, 1
%X = add int %.neg, 1
%Y.neg.ra = add int %A, %X
%r = add int %A.neg, %Y.neg.ra
ret int %r
}