diff options
author | Chris Lattner <sabre@nondot.org> | 2003-12-11 19:16:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-12-11 19:16:30 +0000 |
commit | 659a500e57d7480edffbd9864e46f568426b8d83 (patch) | |
tree | 52e99e01a541cf3ae4d7d2ec6ace7b1140012a0a | |
parent | ed9fc4baade8165974f53047bcfe791951c307f3 (diff) | |
download | llvm-659a500e57d7480edffbd9864e46f568426b8d83.zip llvm-659a500e57d7480edffbd9864e46f568426b8d83.tar.gz llvm-659a500e57d7480edffbd9864e46f568426b8d83.tar.bz2 |
New testcase for PR86
llvm-svn: 10403
-rw-r--r-- | llvm/test/Regression/Transforms/BasicAA/2003-12-11-ConstExprGEP.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/BasicAA/2003-12-11-ConstExprGEP.ll b/llvm/test/Regression/Transforms/BasicAA/2003-12-11-ConstExprGEP.ll new file mode 100644 index 0000000..bc118a3 --- /dev/null +++ b/llvm/test/Regression/Transforms/BasicAA/2003-12-11-ConstExprGEP.ll @@ -0,0 +1,17 @@ +; This testcase consists of alias relations which should be completely +; resolvable by basicaa, but require analysis of getelementptr constant exprs. + +; RUN: llvm-as < %s | opt -aa-eval -print-may-aliases 2>&1 -disable-output | not grep May: + +%T = type { uint, [10 x ubyte] } + +%G = external global %T + +void %test() { + %D = getelementptr %T* %G, long 0, ubyte 0 + %E = getelementptr %T* %G, long 0, ubyte 1, long 5 + %F = getelementptr uint* getelementptr (%T* %G, long 0, ubyte 0), long 0 + %G = getelementptr [10 x ubyte]* getelementptr (%T* %G, long 0, ubyte 1), long 0, long 5 + + ret void +} |