summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-27 23:47:34 +0000
committerChris Lattner <sabre@nondot.org>2006-10-27 23:47:34 +0000
commit0d824c3fe1a3d06e6c0c92952c436226a7402b2e (patch)
treefb6c2f9366fe1bd19a92365dd2a0b46afaebc71e /test
parent583bd47f777fe3eb8305872fa0eadab31e833dff (diff)
downloadllvm-0d824c3fe1a3d06e6c0c92952c436226a7402b2e.tar.gz
llvm-0d824c3fe1a3d06e6c0c92952c436226a7402b2e.tar.bz2
llvm-0d824c3fe1a3d06e6c0c92952c436226a7402b2e.tar.xz
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31241 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/Generic/2006-10-27-CondFolding.ll21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2006-10-27-CondFolding.ll b/test/CodeGen/Generic/2006-10-27-CondFolding.ll
new file mode 100644
index 0000000000..6ebe9fbcf5
--- /dev/null
+++ b/test/CodeGen/Generic/2006-10-27-CondFolding.ll
@@ -0,0 +1,21 @@
+; RUN: llvm-as < %s | llc
+
+void %start_pass_huff(int %gather_statistics) {
+entry:
+ %tmp = seteq int %gather_statistics, 0 ; <bool> [#uses=1]
+ br bool false, label %cond_next22, label %bb166
+
+cond_next22: ; preds = %entry
+ %bothcond = and bool false, %tmp ; <bool> [#uses=1]
+ br bool %bothcond, label %bb34, label %bb46
+
+bb34: ; preds = %cond_next22
+ ret void
+
+bb46: ; preds = %cond_next22
+ ret void
+
+bb166: ; preds = %entry
+ ret void
+}
+