summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-06-01 20:01:05 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-06-01 20:01:05 +0000
commit9aa9b09aca6b8be2a5e214f2a573e2f4de066873 (patch)
tree858fe6ad75252827f7bb234ddd19379749e3753e /test
parent74032a5702c08c90879775a96d64bce72582ad1b (diff)
downloadllvm-9aa9b09aca6b8be2a5e214f2a573e2f4de066873.tar.gz
llvm-9aa9b09aca6b8be2a5e214f2a573e2f4de066873.tar.bz2
llvm-9aa9b09aca6b8be2a5e214f2a573e2f4de066873.tar.xz
Maybe this will keep people from breaking -branch-combine!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/BranchCombine/2004-06-01-Simple.ll24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/Transforms/BranchCombine/2004-06-01-Simple.ll b/test/Transforms/BranchCombine/2004-06-01-Simple.ll
new file mode 100644
index 0000000000..8ea765b07f
--- /dev/null
+++ b/test/Transforms/BranchCombine/2004-06-01-Simple.ll
@@ -0,0 +1,24 @@
+; Basic test of -branch-combine functionality
+; RUN: llvm-as < %s | opt -branch-combine | llvm-dis | egrep 'newCommon:.*; preds =.*no_exit.1' | grep loopentry.2
+
+target endian = big
+target pointersize = 64
+
+implementation ; Functions:
+
+void %main() {
+entry:
+ br bool false, label %__main.entry, label %endif.0.i
+
+endif.0.i: ; preds = %entry
+ ret void
+
+__main.entry: ; preds = %entry
+ br label %no_exit.1
+
+no_exit.1: ; preds = %__main.entry, %no_exit.1, %loopentry.2
+ br bool false, label %loopentry.2, label %no_exit.1
+
+loopentry.2: ; preds = %no_exit.1
+ br label %no_exit.1
+}