[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / tools / llvm-dwarfdump / X86 / debug_addr_unsupported_version.s
blobf30dd8f0b979731046190c929a1d588da93ba8f7
1 # RUN: llvm-mc %s -filetype obj -triple i386-pc-linux -o - | \
2 # RUN: llvm-dwarfdump -debug-addr - 2> %t.err | FileCheck %s
3 # RUN: FileCheck %s -input-file %t.err -check-prefix=ERR
5 # ERR: version 6 of .debug_addr section at offset 0x0 is not supported
6 # ERR-NOT: {{.}}
8 # CHECK: .debug_addr contents
9 # CHECK-NEXT: length = 0x0000000c, version = 0x0005, addr_size = 0x04, seg_size = 0x00
10 # CHECK-NEXT: Addrs: [
11 # CHECK-NEXT: 0x00000002
12 # CHECK-NEXT: 0x00000003
13 # CHECK-NEXT: ]
14 # CHECK-NOT: {{.}}
16 .section .debug_abbrev,"",@progbits
17 .byte 1 # Abbreviation Code
18 .section .debug_info,"",@progbits
19 .Lcu_begin0:
20 .long 8 # Length of Unit
21 .short 5 # DWARF version number
22 .byte 1 # DWARF unit type
23 .byte 4 # Address Size (in bytes)
24 .long .debug_abbrev # Offset Into Abbrev. Section
26 .section .debug_addr,"",@progbits
27 .Ldebug_addr0:
28 .long 12 # unit_length = .short + .byte + .byte + .long + .long
29 .short 6 # version
30 .byte 4 # address_size
31 .byte 0 # segment_selector_size
32 .long 0x00000000
33 .long 0x00000001
35 .section .debug_addr,"",@progbits
36 .Ldebug_addr1:
37 .long 12 # unit_length = .short + .byte + .byte + .long + .long
38 .short 5 # version
39 .byte 4 # address_size
40 .byte 0 # segment_selector_size
41 .long 0x00000002
42 .long 0x00000003