Emit DWARF3 call frame information when DWARF3+ debug info is requested
[oota-llvm.git] / test / DebugInfo / SystemZ / eh_frame.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  check_largest_class
6         .align  4
7         .type   check_largest_class,@function
8 check_largest_class:
9         .cfi_startproc
10         stmg    %r13, %r15, 104(%r15)
11         .cfi_offset %r13, -56
12         .cfi_offset %r14, -48
13         .cfi_offset %r15, -40
14         aghi    %r15, -160
15         .cfi_def_cfa_offset 320
16         lmg     %r13, %r15, 264(%r15)
17         br      %r14
18         .size   check_largest_class, .-check_largest_class
19         .cfi_endproc
20
21 # The readelf rendering is:
22 #
23 # Contents of the .eh_frame section:
24 #
25 # 00000000 0000001c 00000000 CIE
26 #   Version:               3
27 #   Augmentation:          "zR"
28 #   Code alignment factor: 1
29 #   Data alignment factor: -8
30 #   Return address column: 14
31 #   Augmentation data:     1b
32 #
33 #   DW_CFA_def_cfa: r15 ofs 160
34 #   DW_CFA_nop
35 #   DW_CFA_nop
36 #   DW_CFA_nop
37 #
38 # 00000020 0000001c 00000024 FDE cie=00000000 pc=00000000..00000012
39 #   DW_CFA_advance_loc: 6 to 00000006
40 #   DW_CFA_offset: r13 at cfa-56
41 #   DW_CFA_offset: r14 at cfa-48
42 #   DW_CFA_offset: r15 at cfa-40
43 #   DW_CFA_advance_loc: 4 to 0000000a
44 #   DW_CFA_def_cfa_offset: 320
45 #   DW_CFA_nop
46 #   DW_CFA_nop
47 #   DW_CFA_nop
48 #   DW_CFA_nop
49 #
50 # CHECK: Contents of section .eh_frame:
51 # CHECK-NEXT: 0000 00000014 00000000 037a5200 01780e01  .........zR..x..
52 # CHECK-NEXT: 0010 1b0c0fa0 01000000 0000001c 0000001c  ................
53 # CHECK-NEXT: 0020 00000000 00000012 00468d07 8e068f05  .........F......
54 # CHECK-NEXT: 0030 440ec002 00000000                    D.......