[llvm-commits] [llvm] r83995 - /llvm/trunk/test/Transforms/SimplifyCFG/invoke_unwind.ll
Chris Lattner
sabre at nondot.org
Tue Oct 13 11:10:06 PDT 2009
Author: lattner
Date: Tue Oct 13 13:10:05 2009
New Revision: 83995
URL: http://llvm.org/viewvc/llvm-project?rev=83995&view=rev
Log:
convert to filecheck
Modified:
llvm/trunk/test/Transforms/SimplifyCFG/invoke_unwind.ll
Modified: llvm/trunk/test/Transforms/SimplifyCFG/invoke_unwind.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/invoke_unwind.ll?rev=83995&r1=83994&r2=83995&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/invoke_unwind.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/invoke_unwind.ll Tue Oct 13 13:10:05 2009
@@ -1,14 +1,14 @@
; This testcase checks to see if the simplifycfg pass is converting invoke
; instructions to call instructions if the handler just rethrows the exception.
-; If this test is successful, the function should be reduced to 'call; ret'
-
-; RUN: opt < %s -simplifycfg -S | \
-; RUN: not egrep {\\(invoke\\)|\\(br\\)}
+; RUN: opt < %s -simplifycfg -S | FileCheck %s
declare void @bar()
-define i32 @test() {
+define i32 @test1() {
+; CHECK: @test1
+; CHECK-NEXT: call void @bar()
+; CHECK-NEXT: ret i32 0
invoke void @bar( )
to label %Ok unwind label %Rethrow
Ok: ; preds = %0
More information about the llvm-commits
mailing list