~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/Transforms/CodeExtractor/2004-11-12-InvokeExtract.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: opt < %s -extract-blocks -disable-output
 
2
define i32 @foo() {
 
3
        br label %EB
 
4
 
 
5
EB:             ; preds = %0
 
6
        %V = invoke i32 @foo( )
 
7
                        to label %Cont unwind label %Unw                ; <i32> [#uses=1]
 
8
 
 
9
Cont:           ; preds = %EB
 
10
        ret i32 %V
 
11
 
 
12
Unw:            ; preds = %EB
 
13
        %exn = landingpad { i8*, i32 } personality i32 (...)* @__gcc_personality_v0
 
14
                 catch i8* null
 
15
        resume { i8*, i32 } %exn
 
16
}
 
17
 
 
18
declare i32 @__gcc_personality_v0(...)