brintos

brintos / llvm-project-archived public Read only

0
0
Text · 6.9 KiB · cc7ed83 Raw
150 lines · plain
1# Source:2#   unsigned char arr[0x100000];3# Compile with:4#   clang -O2 -gdwarf-3 -S 1.cpp -o 1.s --target=x86_64-pc-linux-gnu5 6# RUN: llvm-mc -triple x86_64-pc-linux-gnu -o - -filetype obj < %s | \7# RUN:   llvm-dwarfdump -debug-info - | FileCheck %s8 9# CHECK: DW_AT_count (0x00100000)10 11	.text12	.file	"1.cpp"13	.file	1 "/llvm-project" "1.cpp"14	.type	arr,@object                     # @arr15	.bss16	.globl	arr17	.p2align	418arr:19	.zero	104857620	.size	arr, 104857621 22	.section	.debug_abbrev,"",@progbits23	.byte	1                               # Abbreviation Code24	.byte	17                              # DW_TAG_compile_unit25	.byte	1                               # DW_CHILDREN_yes26	.byte	37                              # DW_AT_producer27	.byte	14                              # DW_FORM_strp28	.byte	19                              # DW_AT_language29	.byte	5                               # DW_FORM_data230	.byte	3                               # DW_AT_name31	.byte	14                              # DW_FORM_strp32	.byte	16                              # DW_AT_stmt_list33	.byte	6                               # DW_FORM_data434	.byte	27                              # DW_AT_comp_dir35	.byte	14                              # DW_FORM_strp36	.byte	0                               # EOM(1)37	.byte	0                               # EOM(2)38	.byte	2                               # Abbreviation Code39	.byte	52                              # DW_TAG_variable40	.byte	0                               # DW_CHILDREN_no41	.byte	3                               # DW_AT_name42	.byte	14                              # DW_FORM_strp43	.byte	73                              # DW_AT_type44	.byte	19                              # DW_FORM_ref445	.byte	63                              # DW_AT_external46	.byte	12                              # DW_FORM_flag47	.byte	58                              # DW_AT_decl_file48	.byte	11                              # DW_FORM_data149	.byte	59                              # DW_AT_decl_line50	.byte	11                              # DW_FORM_data151	.byte	2                               # DW_AT_location52	.byte	10                              # DW_FORM_block153	.byte	0                               # EOM(1)54	.byte	0                               # EOM(2)55	.byte	3                               # Abbreviation Code56	.byte	1                               # DW_TAG_array_type57	.byte	1                               # DW_CHILDREN_yes58	.byte	73                              # DW_AT_type59	.byte	19                              # DW_FORM_ref460	.byte	0                               # EOM(1)61	.byte	0                               # EOM(2)62	.byte	4                               # Abbreviation Code63	.byte	33                              # DW_TAG_subrange_type64	.byte	0                               # DW_CHILDREN_no65	.byte	73                              # DW_AT_type66	.byte	19                              # DW_FORM_ref467	.byte	55                              # DW_AT_count68	.byte	6                               # DW_FORM_data469	.byte	0                               # EOM(1)70	.byte	0                               # EOM(2)71	.byte	5                               # Abbreviation Code72	.byte	36                              # DW_TAG_base_type73	.byte	0                               # DW_CHILDREN_no74	.byte	3                               # DW_AT_name75	.byte	14                              # DW_FORM_strp76	.byte	62                              # DW_AT_encoding77	.byte	11                              # DW_FORM_data178	.byte	11                              # DW_AT_byte_size79	.byte	11                              # DW_FORM_data180	.byte	0                               # EOM(1)81	.byte	0                               # EOM(2)82	.byte	6                               # Abbreviation Code83	.byte	36                              # DW_TAG_base_type84	.byte	0                               # DW_CHILDREN_no85	.byte	3                               # DW_AT_name86	.byte	14                              # DW_FORM_strp87	.byte	11                              # DW_AT_byte_size88	.byte	11                              # DW_FORM_data189	.byte	62                              # DW_AT_encoding90	.byte	11                              # DW_FORM_data191	.byte	0                               # EOM(1)92	.byte	0                               # EOM(2)93	.byte	0                               # EOM(3)94	.section	.debug_info,"",@progbits95.Lcu_begin0:96	.long	.Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit97.Ldebug_info_start0:98	.short	3                               # DWARF version number99	.long	.debug_abbrev                   # Offset Into Abbrev. Section100	.byte	8                               # Address Size (in bytes)101	.byte	1                               # Abbrev [1] 0xb:0x47 DW_TAG_compile_unit102	.long	.Linfo_string0                  # DW_AT_producer103	.short	33                              # DW_AT_language104	.long	.Linfo_string1                  # DW_AT_name105	.long	.Lline_table_start0             # DW_AT_stmt_list106	.long	.Linfo_string2                  # DW_AT_comp_dir107	.byte	2                               # Abbrev [2] 0x1e:0x16 DW_TAG_variable108	.long	.Linfo_string3                  # DW_AT_name109	.long	52                              # DW_AT_type110	.byte	1                               # DW_AT_external111	.byte	1                               # DW_AT_decl_file112	.byte	1                               # DW_AT_decl_line113	.byte	9                               # DW_AT_location114	.byte	3115	.quad	arr116	.byte	3                               # Abbrev [3] 0x34:0xf DW_TAG_array_type117	.long	67                              # DW_AT_type118	.byte	4                               # Abbrev [4] 0x39:0x9 DW_TAG_subrange_type119	.long	74                              # DW_AT_type120	.long	1048576                         # DW_AT_count121	.byte	0                               # End Of Children Mark122	.byte	5                               # Abbrev [5] 0x43:0x7 DW_TAG_base_type123	.long	.Linfo_string4                  # DW_AT_name124	.byte	8                               # DW_AT_encoding125	.byte	1                               # DW_AT_byte_size126	.byte	6                               # Abbrev [6] 0x4a:0x7 DW_TAG_base_type127	.long	.Linfo_string5                  # DW_AT_name128	.byte	8                               # DW_AT_byte_size129	.byte	7                               # DW_AT_encoding130	.byte	0                               # End Of Children Mark131.Ldebug_info_end0:132	.section	.debug_str,"MS",@progbits,1133.Linfo_string0:134	.asciz	"clang version 13.0.0"          # string offset=0135.Linfo_string1:136	.asciz	"1.cpp"                         # string offset=21137.Linfo_string2:138	.asciz	"/llvm-project" # string offset=27139.Linfo_string3:140	.asciz	"arr"                           # string offset=61141.Linfo_string4:142	.asciz	"unsigned char"                 # string offset=65143.Linfo_string5:144	.asciz	"__ARRAY_SIZE_TYPE__"           # string offset=79145	.ident	"clang version 13.0.0"146	.section	".note.GNU-stack","",@progbits147	.addrsig148	.section	.debug_line,"",@progbits149.Lline_table_start0:150