summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-29 21:00:55 +0000
committerChris Lattner <sabre@nondot.org>2006-10-29 21:00:55 +0000
commit1bc33f7c81d5400e96edd58317cc5f551dc9e059 (patch)
treebe0fd3dbfcf07c1d26d203fce1a557146be6cd5c /test
parent5a145f0094d7e15ca3c0326b1af2ea0ad19f9726 (diff)
downloadllvm-1bc33f7c81d5400e96edd58317cc5f551dc9e059.tar.gz
llvm-1bc33f7c81d5400e96edd58317cc5f551dc9e059.tar.bz2
llvm-1bc33f7c81d5400e96edd58317cc5f551dc9e059.tar.xz
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/Generic/2006-10-29-Crash.ll21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2006-10-29-Crash.ll b/test/CodeGen/Generic/2006-10-29-Crash.ll
new file mode 100644
index 0000000000..0296cb07bd
--- /dev/null
+++ b/test/CodeGen/Generic/2006-10-29-Crash.ll
@@ -0,0 +1,21 @@
+; RUN: llvm-as < %s | llc
+
+void %form_component_prediction(int %dy) {
+entry:
+ %tmp7 = and int %dy, 1 ; <int> [#uses=1]
+ %tmp27 = seteq int %tmp7, 0 ; <bool> [#uses=1]
+ br bool false, label %cond_next30, label %bb115
+
+cond_next30: ; preds = %entry
+ ret void
+
+bb115: ; preds = %entry
+ %bothcond1 = or bool %tmp27, false ; <bool> [#uses=1]
+ br bool %bothcond1, label %bb228, label %cond_next125
+
+cond_next125: ; preds = %bb115
+ ret void
+
+bb228: ; preds = %bb115
+ ret void
+}