Add more addFrameMove test coverage.
[oota-llvm.git] / test / CodeGen / X86 / gcc_except_table.ll
1 ; RUN: llc -mtriple x86_64-apple-darwin %s -o - | FileCheck %s
2 @_ZTIi = external constant i8*
3
4 define i32 @main() uwtable optsize ssp {
5 ; CHECK: .cfi_startproc
6 ; CHECK: .cfi_personality 155, ___gxx_personality_v0
7 ; CHECK: .cfi_lsda 16, Lexception0
8 ; CHECK: .cfi_def_cfa_offset 16
9 ; CHECK: .cfi_endproc
10
11 entry:
12   invoke void @_Z1fv() optsize
13           to label %try.cont unwind label %lpad
14
15 lpad:
16   %0 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
17           catch i8* bitcast (i8** @_ZTIi to i8*)
18   br label %eh.resume
19
20 try.cont:
21   ret i32 0
22
23 eh.resume:
24   resume { i8*, i32 } %0
25 }
26
27 declare void @_Z1fv() optsize
28
29 declare i32 @__gxx_personality_v0(...)
30
31 ; CHECK: Leh_func_end0:
32 ; CHECK: GCC_except_table0
33 ; CHECK: = Leh_func_end0-