Move this test to LoopDeletion, where it now passes.
authorOwen Anderson <resistor@mac.com>
Wed, 30 Apr 2008 07:17:22 +0000 (07:17 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 30 Apr 2008 07:17:22 +0000 (07:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50474 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/ADCE/2007-07-23-InfiniteLoop.ll [deleted file]
test/Transforms/LoopDeletion/2007-07-23-InfiniteLoop.ll [new file with mode: 0644]
test/Transforms/LoopDeletion/dg.exp [new file with mode: 0644]

diff --git a/test/Transforms/ADCE/2007-07-23-InfiniteLoop.ll b/test/Transforms/ADCE/2007-07-23-InfiniteLoop.ll
deleted file mode 100644 (file)
index 60e719b..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-; RUN: llvm-as < %s |   opt -adce | llvm-dis | grep switch
-; PR 1564
-; XFAIL: *
-  
-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/2007-07-23-InfiniteLoop.ll b/test/Transforms/LoopDeletion/2007-07-23-InfiniteLoop.ll
new file mode 100644 (file)
index 0000000..ecba2f4
--- /dev/null
@@ -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 (file)
index 0000000..879685c
--- /dev/null
@@ -0,0 +1,3 @@
+load_lib llvm.exp
+
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]