Add testcase for new instcombine xform

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5703 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-03-05 22:32:48 +00:00
parent 46a5f1f6e4
commit 4872eaf189

View File

@ -9,7 +9,7 @@
implementation
int *"foo1"(int * %I) { ; Test noop elimination
int *%foo1(int* %I) { ; Test noop elimination
%A = getelementptr int* %I, long 0
ret int * %A
}
@ -42,3 +42,9 @@ int* %foo6() {
%B = getelementptr int* %A, long 2
ret int* %B
}
int* %foo7(int* %I, long %C, long %D) {
%A = getelementptr int* %I, long %C
%B = getelementptr int* %A, long %D
ret int* %B
}