new testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19539 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-01-13 23:26:14 +00:00
parent a44f4aeca7
commit 195e9176af

View File

@ -0,0 +1,17 @@
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep getelementptr
bool %test1(short* %P, int %I, int %J) {
%X = getelementptr short* %P, int %I
%Y = getelementptr short* %P, int %J
%C = setlt short* %X, %Y
ret bool %C
}
bool %test2(short* %P, int %I) {
%X = getelementptr short* %P, int %I
%C = setlt short* %X, %P
ret bool %C
}