[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / tools / llvm-dwarfdump / X86 / verify_die_ranges.s
blobea357b728897eceb4e792b0022331f5c6e4662f7
1 # RUN: llvm-mc %s -filetype obj -triple x86_64-apple-darwin -o - \
2 # RUN: | not llvm-dwarfdump -verify - \
3 # RUN: | FileCheck %s
5 # CHECK: Verifying .debug_info Unit Header Chain...
6 # CHECK-NEXT: error: Invalid address range [0x0000000000000007, 0x0000000000000006)
8 .section __TEXT,__text,regular,pure_instructions
9 .macosx_version_min 10, 12
10 .globl _foo ## -- Begin function foo
11 .p2align 4, 0x90
12 _foo: ## @foo
13 Lfunc_begin0:
14 .file 1 "basic.c"
15 .loc 1 1 0 ## basic.c:1:0
16 .cfi_startproc
17 ## %bb.0: ## %entry
18 pushq %rbp
19 .cfi_def_cfa_offset 16
20 .cfi_offset %rbp, -16
21 movq %rsp, %rbp
22 .cfi_def_cfa_register %rbp
23 Ltmp0:
24 .loc 1 1 17 prologue_end ## basic.c:1:17
25 popq %rbp
26 retq
27 Ltmp1:
28 Lfunc_end0:
29 .cfi_endproc
30 ## -- End function
31 .section __DWARF,__debug_str,regular,debug
32 Linfo_string:
33 .asciz "clang version 6.0.0 (trunk 308773) (llvm/trunk 308774)" ## string offset=0
34 .asciz "basic.c" ## string offset=55
35 .asciz "/Users/sgravani/Development/tests" ## string offset=63
36 .asciz "foo" ## string offset=97
37 .section __DWARF,__debug_abbrev,regular,debug
38 Lsection_abbrev:
39 .byte 1 ## Abbreviation Code
40 .byte 17 ## DW_TAG_compile_unit
41 .byte 1 ## DW_CHILDREN_yes
42 .byte 37 ## DW_AT_producer
43 .byte 14 ## DW_FORM_strp
44 .byte 19 ## DW_AT_language
45 .byte 5 ## DW_FORM_data2
46 .byte 3 ## DW_AT_name
47 .byte 14 ## DW_FORM_strp
48 .byte 16 ## DW_AT_stmt_list
49 .byte 6 ## DW_FORM_data4
50 .byte 27 ## DW_AT_comp_dir
51 .byte 14 ## DW_FORM_strp
52 .byte 17 ## DW_AT_low_pc
53 .byte 1 ## DW_FORM_addr
54 .byte 18 ## DW_AT_high_pc
55 .byte 1 ## DW_FORM_addr
56 .byte 0 ## EOM(1)
57 .byte 0 ## EOM(2)
58 .section __DWARF,__debug_info,regular,debug
59 Lsection_info:
60 Lcu_begin0:
61 .long 43 ## Length of Unit
62 .short 3 ## DWARF version number
63 Lset0 = Lsection_abbrev-Lsection_abbrev ## Offset Into Abbrev. Section
64 .long Lset0
65 .byte 8 ## Address Size (in bytes)
66 .byte 1 ## Abbrev [1] 0xb:0x3f DW_TAG_compile_unit
67 .long 0 ## DW_AT_producer
68 .short 12 ## DW_AT_language
69 .long 55 ## DW_AT_name
70 Lset1 = Lline_table_start0-Lsection_line ## DW_AT_stmt_list
71 .long Lset1
72 .long 63 ## DW_AT_comp_dir
73 .quad 7 ## DW_AT_low_pc -- error: Invalid address range [0x0000000000000007, 0x0000000000000006)
74 .quad 6 ## DW_AT_high_pc
75 .byte 0 ## End Of Children Mark
76 .subsections_via_symbols
77 .section __DWARF,__debug_line,regular,debug
78 Lsection_line:
79 Lline_table_start0: