[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / tools / llvm-dwarfdump / X86 / apple_names_verify_num_atoms.s
blob64ac626e266a7970171caa7e2a831dcad8a09f63
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 .apple_names...
6 # CHECK-NEXT: error: No atoms: failed to read HashData.
8 # This test is meant to verify that the -verify option
9 # in llvm-dwarfdump, correctly identifies that there is not Atom.
10 # As a result, the hashdata cannot be read.
12 .section __TEXT,__text,regular,pure_instructions
13 .file 1 "basic.c"
14 .comm _i,4,2 ## @i
15 .comm _j,4,2 ## @j
16 .section __DWARF,__debug_str,regular,debug
17 Linfo_string:
18 .asciz "Apple LLVM version 8.1.0 (clang-802.0.35)" ## string offset=0
19 .asciz "basic.c" ## string offset=42
20 .asciz "/Users/sgravani/Development/tests" ## string offset=50
21 .asciz "i" ## string offset=84
22 .asciz "int" ## string offset=86
23 .asciz "j" ## string offset=90
25 .section __DWARF,__debug_info,regular,debug
26 Lsection_info:
27 .section __DWARF,__apple_names,regular,debug
28 Lnames_begin:
29 .long 1212240712 ## Header Magic
30 .short 1 ## Header Version
31 .short 0 ## Header Hash Function
32 .long 2 ## Header Bucket Count
33 .long 2 ## Header Hash Count
34 .long 12 ## Header Data Length
35 .long 0 ## HeaderData Die Offset Base
36 .long 0 ## HeaderData Atom Count -- error: no atoms; failed to read HashData.
37 .short 1 ## DW_ATOM_die_offset
38 .short 6 ## DW_FORM_data4
39 .long 0 ## Bucket 0
40 .long 1 ## Bucket 1
41 .long 177678 ## Hash in Bucket 0
42 .long 177679 ## Hash in Bucket 1
43 .long LNames0-Lnames_begin ## Offset in Bucket 0
44 .long LNames1-Lnames_begin ## Offset in Bucket 1
45 LNames0:
46 .long 84 ## i
47 .long 1 ## Num DIEs
48 .long 30
49 .long 0
50 LNames1:
51 .long 90 ## j
52 .long 1 ## Num DIEs
53 .long 58
54 .long 0
56 .subsections_via_symbols
57 .section __DWARF,__debug_line,regular,debug
58 Lsection_line:
59 Lline_table_start0: