aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/LoopDeletion
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-04-30 07:17:22 +0000
committerOwen Anderson <resistor@mac.com>2008-04-30 07:17:22 +0000
commit0cad8444ccdee98af3b6a718a57a6d566a5cd6e4 (patch)
tree5de2f4b35ec9bf75a675bac8acba1a806139b15a /test/Transforms/LoopDeletion
parent5023aa58cae8a5ed8e0bc3eae325843d926726c4 (diff)
downloadexternal_llvm-0cad8444ccdee98af3b6a718a57a6d566a5cd6e4.zip
external_llvm-0cad8444ccdee98af3b6a718a57a6d566a5cd6e4.tar.gz
external_llvm-0cad8444ccdee98af3b6a718a57a6d566a5cd6e4.tar.bz2
Move this test to LoopDeletion, where it now passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LoopDeletion')
-rw-r--r--test/Transforms/LoopDeletion/2007-07-23-InfiniteLoop.ll13
-rw-r--r--test/Transforms/LoopDeletion/dg.exp3
2 files changed, 16 insertions, 0 deletions
diff --git a/test/Transforms/LoopDeletion/2007-07-23-InfiniteLoop.ll b/test/Transforms/LoopDeletion/2007-07-23-InfiniteLoop.ll
new file mode 100644
index 0000000..ecba2f4
--- /dev/null
+++ b/test/Transforms/LoopDeletion/2007-07-23-InfiniteLoop.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | opt -loop-deletion | llvm-dis | grep switch
+; PR 1564
+
+define fastcc void @out() {
+ start:
+ br label %loop
+ unreachable:
+ unreachable
+ loop:
+ switch i32 0, label %unreachable [
+ i32 0, label %loop
+ ]
+}
diff --git a/test/Transforms/LoopDeletion/dg.exp b/test/Transforms/LoopDeletion/dg.exp
new file mode 100644
index 0000000..879685c
--- /dev/null
+++ b/test/Transforms/LoopDeletion/dg.exp
@@ -0,0 +1,3 @@
+load_lib llvm.exp
+
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]