~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/X86/cfi.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck --check-prefix=STATIC %s
 
2
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -relocation-model=pic | FileCheck --check-prefix=PIC %s
 
3
 
 
4
; STATIC: .cfi_personality 3, __gxx_personality_v0
 
5
; STATIC: .cfi_lsda 3, .Lexception0
 
6
 
 
7
; PIC: .cfi_personality 155, DW.ref.__gxx_personality_v0
 
8
; PIC: .cfi_lsda 27, .Lexception0
 
9
 
 
10
 
 
11
define void @bar() personality i32 (...)* @__gxx_personality_v0 {
 
12
entry:
 
13
  %call = invoke i32 @foo()
 
14
          to label %invoke.cont unwind label %lpad
 
15
 
 
16
invoke.cont:
 
17
  ret void
 
18
 
 
19
lpad:
 
20
  %exn = landingpad {i8*, i32}
 
21
            catch i8* null
 
22
  ret void
 
23
}
 
24
 
 
25
declare i32 @foo()
 
26
 
 
27
declare i32 @__gxx_personality_v0(...)