[llvm-commits] [llvm] r47990 - /llvm/trunk/test/Feature/unwindto.ll

Nick Lewycky nicholas at mxc.ca
Wed Mar 5 22:55:58 PST 2008


Author: nicholas
Date: Thu Mar  6 00:55:58 2008
New Revision: 47990

URL: http://llvm.org/viewvc/llvm-project?rev=47990&view=rev
Log:
Exercise the new CFG change.

Modified:
    llvm/trunk/test/Feature/unwindto.ll

Modified: llvm/trunk/test/Feature/unwindto.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Feature/unwindto.ll?rev=47990&r1=47989&r2=47990&view=diff

==============================================================================
--- llvm/trunk/test/Feature/unwindto.ll (original)
+++ llvm/trunk/test/Feature/unwindto.ll Thu Mar  6 00:55:58 2008
@@ -52,3 +52,16 @@
 unwind: unwind_to %unwind
   unwind
 }
+
+define i8 @test7(i1 %b) {
+entry: unwind_to %cleanup
+  br i1 %b, label %cond_true, label %cond_false
+cond_true: unwind_to %cleanup
+  br label %cleanup
+cond_false: unwind_to %cleanup
+  br label %cleanup
+cleanup:
+  %x = phi i8 [0, %entry], [1, %cond_true], [1, %cond_true],
+                           [2, %cond_false], [2, %cond_false]
+  ret i8 %x
+}





More information about the llvm-commits mailing list