New testcase that is a distilled form of the other one
authorChris Lattner <sabre@nondot.org>
Tue, 28 May 2002 21:29:28 +0000 (21:29 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 28 May 2002 21:29:28 +0000 (21:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2752 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/ADCE/2002-05-28-Crash-distilled.ll [new file with mode: 0644]
test/Transforms/ADCE/2002-05-28-Crash.ll

diff --git a/test/Transforms/ADCE/2002-05-28-Crash-distilled.ll b/test/Transforms/ADCE/2002-05-28-Crash-distilled.ll
new file mode 100644 (file)
index 0000000..347559b
--- /dev/null
@@ -0,0 +1,17 @@
+; This testcase is a distilled form of: 2002-05-28-Crash.ll
+
+; RUN: as < %s | opt -adce 
+
+float "test"(int %i) {
+       %F = cast int %i to float    ; This BB is not dead
+       %I = cast int %i to uint     ; future dead inst
+       br label %Loop
+
+Loop:                                ; This block is dead
+       %B = cast uint %I to bool
+       br bool %B, label %Out, label %Loop
+
+Out:
+       ret float %F
+}
+
index 184384ed48e8e3fe6af03188733874fdfa837392..c0dafc674fac2782fd2ed14881817dfd594d2832 100644 (file)
@@ -11,7 +11,7 @@
 ;  return !s;
 ;}
 ;
-; RUN: as < %s | opt -adce | dis
+; RUN: as < %s | opt -adce
 
 implementation   ; Functions: