diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-18 19:38:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-18 19:38:15 +0000 |
commit | 06a40438722a4889abd239efbd6c1bf4bbbee85b (patch) | |
tree | e5118097a000b9df060b60eb6460ac01633304ad | |
parent | 1730078d5f553d7516a06e098e6c2089dc8bef9c (diff) |
testcase for recent indvars patches
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24415 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/IndVarsSimplify/2005-11-18-Crash.ll | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Transforms/IndVarsSimplify/2005-11-18-Crash.ll b/test/Transforms/IndVarsSimplify/2005-11-18-Crash.ll new file mode 100644 index 0000000000..b7b0fcad5b --- /dev/null +++ b/test/Transforms/IndVarsSimplify/2005-11-18-Crash.ll @@ -0,0 +1,18 @@ +; RUN: llvm-as < %s | opt -indvars -disable-output + +%fixtab = external global [29 x [29 x [2 x uint]]] ; <[29 x [29 x [2 x uint]]]*> [#uses=1] + +implementation ; Functions: + +void %init_optabs() { +entry: + br label %no_exit.0 + +no_exit.0: ; preds = %no_exit.0, %entry + %p.0.0 = phi uint* [ getelementptr ([29 x [29 x [2 x uint]]]* %fixtab, int 0, int 0, int 0, int 0), %entry ], [ %inc.0, %no_exit.0 ] ; <uint*> [#uses=1] + %inc.0 = getelementptr uint* %p.0.0, int 1 ; <uint*> [#uses=1] + br bool false, label %no_exit.0, label %no_exit.1 + +no_exit.1: ; preds = %no_exit.0 + ret void +} |