summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-06-03 18:32:27 +0000
committerOwen Anderson <resistor@mac.com>2008-06-03 18:32:27 +0000
commit6c871c086639dd4bb6ca460afb4e0be96bb3fa54 (patch)
treeaf87db0117978b21182e6b96bc893dd940728ea9 /llvm/test
parent2df82e7cec83d1b12731ebe851d55fe1ba73854e (diff)
downloadbcm5719-llvm-6c871c086639dd4bb6ca460afb4e0be96bb3fa54.tar.gz
bcm5719-llvm-6c871c086639dd4bb6ca460afb4e0be96bb3fa54.zip
Testcase for LoopIndexSplit and DomFrontier.
llvm-svn: 51916
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/LoopIndexSplit/2008-06-03-DomFrontier.ll32
1 files changed, 32 insertions, 0 deletions
diff --git a/llvm/test/Transforms/LoopIndexSplit/2008-06-03-DomFrontier.ll b/llvm/test/Transforms/LoopIndexSplit/2008-06-03-DomFrontier.ll
new file mode 100644
index 00000000000..1f6876c8d29
--- /dev/null
+++ b/llvm/test/Transforms/LoopIndexSplit/2008-06-03-DomFrontier.ll
@@ -0,0 +1,32 @@
+; RUN: llvm-as < %s | opt -loop-rotate -loop-unswitch -loop-index-split -instcombine -disable-output
+target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
+target triple = "i386-apple-darwin9"
+ %struct.__CFData = type opaque
+ %struct.__CFString = type opaque
+
+define %struct.__CFData* @WirelessCreatePSK(%struct.__CFString* %inPassphrase, %struct.__CFData* %inSSID) nounwind {
+entry:
+ br label %bb52
+
+bb52: ; preds = %bb142, %bb52, %entry
+ br i1 false, label %bb142, label %bb52
+
+bb63: ; preds = %bb142, %bb131
+ %t.0.reg2mem.0 = phi i32 [ %tmp133, %bb131 ], [ 0, %bb142 ] ; <i32> [#uses=2]
+ %tmp65 = icmp ult i32 %t.0.reg2mem.0, 16 ; <i1> [#uses=1]
+ br i1 %tmp65, label %bb68, label %bb89
+
+bb68: ; preds = %bb63
+ br label %bb131
+
+bb89: ; preds = %bb63
+ br label %bb131
+
+bb131: ; preds = %bb89, %bb68
+ %tmp133 = add i32 %t.0.reg2mem.0, 1 ; <i32> [#uses=2]
+ %tmp136 = icmp ult i32 %tmp133, 80 ; <i1> [#uses=1]
+ br i1 %tmp136, label %bb63, label %bb142
+
+bb142: ; preds = %bb131, %bb52
+ br i1 undef, label %bb63, label %bb52
+}
OpenPOWER on IntegriCloud