Use DwarfDebug::attachLowHighPC for the compilation unit DIE.
[oota-llvm.git] / test / DebugInfo / SystemZ / eh_frame_personality.s
1 # RUN: llvm-mc -triple=s390x-linux-gnu -filetype=obj %s -o %t
2 # RUN: llvm-objdump -s %t | FileCheck %s
3
4         .text
5         .globl  foo
6         .align  4
7         .type   foo,@function
8 foo:                                    # @foo
9         .cfi_startproc
10         .cfi_personality 155, DW.ref.__gxx_personality_v0
11         .cfi_lsda 27, .Lexception0
12         stmg    %r14, %r15, 112(%r15)
13         .cfi_offset %r14, -48
14         .cfi_offset %r15, -40
15         aghi    %r15, -160
16         .cfi_def_cfa_offset 320
17         lmg     %r14, %r15, 272(%r15)
18         br      %r14
19         .size   foo, .-foo
20         .cfi_endproc
21
22         .section        .gcc_except_table,"a",@progbits
23         .align  4
24 .Lexception0:
25
26         .hidden DW.ref.__gxx_personality_v0
27         .weak   DW.ref.__gxx_personality_v0
28         .section        .data.DW.ref.__gxx_personality_v0,"aGw",@progbits,DW.ref.__gxx_personality_v0,comdat
29         .align  8
30         .type   DW.ref.__gxx_personality_v0,@object
31         .size   DW.ref.__gxx_personality_v0, 8
32 DW.ref.__gxx_personality_v0:
33         .quad   __gxx_personality_v0
34
35 # The readelf rendering is:
36 #
37 # Contents of the .eh_frame section:
38 #
39 # 00000000 0000001c 00000000 CIE
40 #   Version:               3
41 #   Augmentation:          "zPLR"
42 #   Code alignment factor: 1
43 #   Data alignment factor: -8
44 #   Return address column: 14
45 #   Augmentation data:     9b ff ff ff ed 1b 1b
46 #
47 #   DW_CFA_def_cfa: r15 ofs 160
48 #   DW_CFA_nop
49 #   DW_CFA_nop
50 #   DW_CFA_nop
51 #
52 # 00000020 0000001c 00000024 FDE cie=00000000 pc=00000000..00000012
53 #   Augmentation data:     ff ff ff cf
54 #
55 #   DW_CFA_advance_loc: 6 to 00000006
56 #   DW_CFA_offset: r14 at cfa-48
57 #   DW_CFA_offset: r15 at cfa-40
58 #   DW_CFA_advance_loc: 4 to 0000000a
59 #   DW_CFA_def_cfa_offset: 320
60 #   DW_CFA_nop
61 #   DW_CFA_nop
62 #
63 # CHECK: Contents of section .eh_frame:
64 # CHECK-NEXT: 0000 0000001c 00000000 037a504c 52000178  .........zPLR..x
65 # CHECK-NEXT: 0010 0e079b00 0000001b 1b0c0fa0 01000000  ................
66 # CHECK-NEXT: 0020 0000001c 00000024 00000000 00000012  .......$........
67 # CHECK-NEXT: 0030 04000000 00468e06 8f05440e c0020000  .....F....D.....