xref: /llvm-project/llvm/test/DebugInfo/X86/dwp-dwarf64.s (revision 0db1684b7435201e6b30236e6334a618fcfa6771)
17a9d00f2SIgor Kudrin# RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o - | \
27a9d00f2SIgor Kudrin# RUN:   llvm-dwarfdump -debug-info - | \
37a9d00f2SIgor Kudrin# RUN:   FileCheck %s
47a9d00f2SIgor Kudrin
57a9d00f2SIgor Kudrin# CHECK:      .debug_info.dwo contents:
67a9d00f2SIgor Kudrin
77a9d00f2SIgor Kudrin# CHECK:      0x00000000: Compile Unit:
8*0db1684bSIgor Kudrin# CHECK-SAME:   length = 0x0000000000000018
97a9d00f2SIgor Kudrin# CHECK-SAME:   version = 0x0004
107a9d00f2SIgor Kudrin# CHECK-SAME:   abbr_offset = 0x0000
117a9d00f2SIgor Kudrin# CHECK-SAME:   addr_size = 0x04
127a9d00f2SIgor Kudrin
137a9d00f2SIgor Kudrin# CHECK:      0x00000017: DW_TAG_compile_unit
147a9d00f2SIgor Kudrin# CHECK-NEXT:   DW_AT_name ("a.c")
157a9d00f2SIgor Kudrin# CHECK-NEXT:   DW_AT_GNU_dwo_id (0x1100001122222222)
167a9d00f2SIgor Kudrin
177a9d00f2SIgor Kudrin    .section .debug_abbrev.dwo, "e", @progbits
187a9d00f2SIgor Kudrin.LAbbrBegin:
197a9d00f2SIgor Kudrin    .uleb128 1                  # Abbreviation Code
207a9d00f2SIgor Kudrin    .uleb128 17                 # DW_TAG_compile_unit
217a9d00f2SIgor Kudrin    .byte 0                     # DW_CHILDREN_no
227a9d00f2SIgor Kudrin    .uleb128 3                  # DW_AT_name
237a9d00f2SIgor Kudrin    .uleb128 8                  # DW_FORM_string
247a9d00f2SIgor Kudrin    .uleb128 0x2131             # DW_AT_GNU_dwo_id
257a9d00f2SIgor Kudrin    .uleb128 7                  # DW_FORM_data8
267a9d00f2SIgor Kudrin    .byte 0                     # EOM(1)
277a9d00f2SIgor Kudrin    .byte 0                     # EOM(2)
287a9d00f2SIgor Kudrin    .byte 0                     # EOM(3)
297a9d00f2SIgor Kudrin.LAbbrEnd:
307a9d00f2SIgor Kudrin
317a9d00f2SIgor Kudrin    .section .debug_info.dwo, "e", @progbits
327a9d00f2SIgor Kudrin.LCUBegin:
337a9d00f2SIgor Kudrin    .long 0xffffffff            # DWARF64 mark
347a9d00f2SIgor Kudrin    .quad .LCUEnd-.LCUVersion   # Length
357a9d00f2SIgor Kudrin.LCUVersion:
367a9d00f2SIgor Kudrin    .short 4                    # Version
377a9d00f2SIgor Kudrin    .quad 0                     # Abbrev offset
387a9d00f2SIgor Kudrin    .byte 4                     # Address size
397a9d00f2SIgor Kudrin    .uleb128 1                  # Abbrev [1] DW_TAG_compile_unit
407a9d00f2SIgor Kudrin    .asciz "a.c"                # DW_AT_name
417a9d00f2SIgor Kudrin    .quad 0x1100001122222222    # DW_AT_GNU_dwo_id
427a9d00f2SIgor Kudrin.LCUEnd:
437a9d00f2SIgor Kudrin
447a9d00f2SIgor Kudrin    .section .debug_cu_index, "", @progbits
457a9d00f2SIgor Kudrin## Header:
467a9d00f2SIgor Kudrin    .short 2                    # Version
477a9d00f2SIgor Kudrin    .space 2                    # Padding
487a9d00f2SIgor Kudrin    .long 2                     # Section count
497a9d00f2SIgor Kudrin    .long 1                     # Unit count
507a9d00f2SIgor Kudrin    .long 4                     # Slot count
517a9d00f2SIgor Kudrin## Hash Table of Signatures:
527a9d00f2SIgor Kudrin    .quad 0
537a9d00f2SIgor Kudrin    .quad 0
547a9d00f2SIgor Kudrin    .quad 0x1100001122222222
557a9d00f2SIgor Kudrin    .quad 0
567a9d00f2SIgor Kudrin## Parallel Table of Indexes:
577a9d00f2SIgor Kudrin    .long 0
587a9d00f2SIgor Kudrin    .long 0
597a9d00f2SIgor Kudrin    .long 1
607a9d00f2SIgor Kudrin    .long 0
617a9d00f2SIgor Kudrin## Table of Section Offsets:
627a9d00f2SIgor Kudrin## Row 0:
637a9d00f2SIgor Kudrin    .long 1                     # DW_SECT_INFO
647a9d00f2SIgor Kudrin    .long 3                     # DW_SECT_ABBREV
656e9c10f6SIgor Kudrin## Row 1:
667a9d00f2SIgor Kudrin    .long .LCUBegin-.debug_info.dwo     # Offset in .debug_info.dwo
677a9d00f2SIgor Kudrin    .long .LAbbrBegin-.debug_abbrev.dwo # Offset in .debug_abbrev.dwo
687a9d00f2SIgor Kudrin## Table of Section Sizes:
697a9d00f2SIgor Kudrin    .long .LCUEnd-.LCUBegin
707a9d00f2SIgor Kudrin    .long .LAbbrEnd-.LAbbrBegin
71