testcase for recent indvars patches
authorChris Lattner <sabre@nondot.org>
Fri, 18 Nov 2005 19:38:15 +0000 (19:38 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 18 Nov 2005 19:38:15 +0000 (19:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24415 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/IndVarsSimplify/2005-11-18-Crash.ll [new file with mode: 0644]

diff --git a/test/Transforms/IndVarsSimplify/2005-11-18-Crash.ll b/test/Transforms/IndVarsSimplify/2005-11-18-Crash.ll
new file mode 100644 (file)
index 0000000..b7b0fca
--- /dev/null
@@ -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
+}