• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple=mipsel-linux-gnu < %s -asm-verbose | FileCheck -check-prefix=ALL -check-prefix=O32 %s
2; RUN: llc -mtriple=mipsel-linux-android < %s -asm-verbose | FileCheck -check-prefix=ALL -check-prefix=O32 %s
3; RUN: llc -mtriple=mips64el-linux-gnu -target-abi=n32 < %s -asm-verbose | FileCheck -check-prefix=ALL -check-prefix=N32 %s
4; RUN: llc -mtriple=mips64el-linux-android -target-abi=n32 < %s -asm-verbose | FileCheck -check-prefix=ALL -check-prefix=N32 %s
5; RUN: llc -mtriple=mips64el-linux-gnu < %s -asm-verbose | FileCheck -check-prefix=ALL -check-prefix=N64 %s
6; RUN: llc -mtriple=mips64el-linux-android < %s -asm-verbose | FileCheck -check-prefix=ALL -check-prefix=N64 %s
7
8@_ZTISt9exception = external constant i8*
9
10define i32 @main() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
11; ALL: .cfi_startproc
12; ALL: .cfi_personality 128, DW.ref.__gxx_personality_v0
13
14entry:
15  invoke void @foo() to label %cont unwind label %lpad
16; ALL: foo
17; ALL: jalr
18
19lpad:
20  %0 = landingpad { i8*, i32 }
21    catch i8* null
22    catch i8* bitcast (i8** @_ZTISt9exception to i8*)
23  ret i32 0
24
25cont:
26  ret i32 0
27}
28; ALL: .cfi_endproc
29
30declare i32 @__gxx_personality_v0(...)
31
32declare void @foo()
33
34; ALL: GCC_except_table{{[0-9]+}}:
35; ALL: .byte 155 # @TType Encoding = indirect pcrel sdata4
36; ALL: $[[PC_LABEL:tmp[0-9]+]]:
37; ALL: .4byte	($_ZTISt9exception.DW.stub)-($[[PC_LABEL]])
38; ALL: $_ZTISt9exception.DW.stub:
39; O32: .4byte _ZTISt9exception
40; N32: .4byte _ZTISt9exception
41; N64: .8byte _ZTISt9exception
42; ALL: .hidden DW.ref.__gxx_personality_v0
43; ALL: .weak DW.ref.__gxx_personality_v0
44; ALL: .section .data.DW.ref.__gxx_personality_v0,"aGw",@progbits,DW.ref.__gxx_personality_v0,comdat
45; O32: .align 2
46; N32: .align 2
47; N64: .align 3
48; ALL: .type DW.ref.__gxx_personality_v0,@object
49; O32: .size DW.ref.__gxx_personality_v0, 4
50; N32: .size DW.ref.__gxx_personality_v0, 4
51; N64: .size DW.ref.__gxx_personality_v0, 8
52; ALL: DW.ref.__gxx_personality_v0:
53; O32: .4byte __gxx_personality_v0
54; N32: .4byte __gxx_personality_v0
55; N64: .8byte __gxx_personality_v0
56