summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-17 01:01:30 +0000
committerChris Lattner <sabre@nondot.org>2006-06-17 01:01:30 +0000
commitfefc14d89171877c4b1ac0b25619a2a3d6a27b74 (patch)
tree157e2d9fb7183465097de55f4160a1ed5137daaa
parenta54b9643aae64b1721ffabe875bd348c9c1444f6 (diff)
downloadbcm5719-llvm-fefc14d89171877c4b1ac0b25619a2a3d6a27b74.tar.gz
bcm5719-llvm-fefc14d89171877c4b1ac0b25619a2a3d6a27b74.zip
new testcase that crashes indvars
llvm-svn: 28849
-rw-r--r--llvm/test/Regression/Transforms/IndVarsSimplify/2006-06-16-Indvar-LCSSA-Crash.ll21
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/IndVarsSimplify/2006-06-16-Indvar-LCSSA-Crash.ll b/llvm/test/Regression/Transforms/IndVarsSimplify/2006-06-16-Indvar-LCSSA-Crash.ll
new file mode 100644
index 00000000000..1f71c4e7d7d
--- /dev/null
+++ b/llvm/test/Regression/Transforms/IndVarsSimplify/2006-06-16-Indvar-LCSSA-Crash.ll
@@ -0,0 +1,21 @@
+; RUN: llvm-as < %s | opt -indvars -disable-output
+
+void %get_block() {
+endif.0: ; preds = %entry
+ br label %no_exit.30
+
+no_exit.30: ; preds = %no_exit.30, %endif.0
+ %x.12.0 = phi int [ %inc.28, %no_exit.30 ], [ -2, %endif.0 ] ; <int> [#uses=1]
+ %tmp.583 = load ushort* null ; <ushort> [#uses=1]
+ %tmp.584 = cast ushort %tmp.583 to int ; <int> [#uses=1]
+ %tmp.588 = load int* null ; <int> [#uses=1]
+ %tmp.589 = mul int %tmp.584, %tmp.588 ; <int> [#uses=1]
+ %tmp.591 = add int %tmp.589, 0 ; <int> [#uses=1]
+ %inc.28 = add int %x.12.0, 1 ; <int> [#uses=2]
+ %tmp.565 = setgt int %inc.28, 3 ; <bool> [#uses=1]
+ br bool %tmp.565, label %loopexit.30, label %no_exit.30
+
+loopexit.30: ; preds = %no_exit.30
+ %tmp.591.lcssa = phi int [ %tmp.591, %no_exit.30 ] ; <int> [#uses=0]
+ ret void
+}
OpenPOWER on IntegriCloud