annotate bolt/test/X86/shared-abbrev.s @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1f2b6ac9f198
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
1 # RUN: rm -rf %t
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
2 # RUN: mkdir %t
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
3 # RUN: llvm-mc -filetype=obj -triple=x86_64 -dwarf-version=4 %s -o %t/shared-abbrev.o
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
4 # RUN: %clang %cflags %t/shared-abbrev.o -o %t/shared-abbrev.exe
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
5 # RUN: llvm-bolt %t/shared-abbrev.exe -o %t/shared-abbrev.exe.bolt --update-debug-sections
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
6 # RUN: llvm-dwarfdump --debug-info %t/shared-abbrev.exe.bolt | FileCheck %s
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
7
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
8 # CHECK: 0x00000000:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
9 # CHECK-SAME: abbr_offset = 0x0000
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
10 # CHECK-EMPTY:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
11 # CHECK-NEXT: DW_TAG_compile_unit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
12 # CHECK-NEXT: DW_AT_stmt_list
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
13 # CHECK-NEXT: DW_AT_low_pc
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
14 # CHECK-NEXT: DW_AT_ranges
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
15 # CHECK: 0x0000001c:
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
16 # CHECK-SAME: abbr_offset = 0x0000
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
17 # CHECK-EMPTY:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
18 # CHECK: DW_TAG_compile_unit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
19 # CHECK-NEXT: DW_AT_stmt_list
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
20 # CHECK-NEXT: DW_AT_low_pc
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
21 # CHECK-NEXT: DW_AT_ranges
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
22 # CHECK: 0x00000038:
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
23 # CHECK-SAME: abbr_offset = 0x0000
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
24 # CHECK-EMPTY:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
25 # CHECK-NEXT: DW_TAG_compile_unit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
26 # CHECK-NEXT: DW_AT_stmt_list
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
27 # CHECK-NEXT: DW_AT_low_pc
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
28 # CHECK-NEXT: DW_AT_ranges
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
29
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
30 .text
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
31 .file "main.cpp"
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
32 .globl main # -- Begin function main
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
33 .p2align 4, 0x90
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
34 .type main,@function
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
35 main: # @main
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
36 .Lfunc_begin0:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
37 .file 1 "test" "main.cpp"
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
38 .loc 1 1 0 # main.cpp:1:0
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
39 .cfi_startproc
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
40 .cfi_def_cfa %rsp, 8
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
41 retq
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
42 .Ltmp1:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
43 .Lfunc_end0:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
44 .size main, .Lfunc_end0-main
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
45 .cfi_endproc
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
46 # -- End function
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
47 .section .debug_abbrev,"",@progbits
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
48 .byte 1 # Abbreviation Code
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
49 .byte 17 # DW_TAG_compile_unit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
50 .byte 0 # DW_CHILDREN_no
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
51 .byte 16 # DW_AT_stmt_list
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
52 .byte 23 # DW_FORM_sec_offset
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
53 .byte 17 # DW_AT_low_pc
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
54 .byte 1 # DW_FORM_addr
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
55 .byte 18 # DW_AT_high_pc
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
56 .byte 7 # DW_FORM_data8
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
57 .byte 0 # EOM(1)
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
58 .byte 0 # EOM(2)
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
59 .byte 2 # Abbreviation Code
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
60 .byte 17 # DW_TAG_compile_unit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
61 .byte 0 # DW_CHILDREN_no
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
62 .byte 16 # DW_AT_stmt_list
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
63 .byte 23 # DW_FORM_sec_offset
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
64 .byte 17 # DW_AT_low_pc
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
65 .byte 1 # DW_FORM_addr
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
66 .byte 85 # DW_AT_ranges
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
67 .byte 23 # DW_FORM_sec_offset
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
68 .byte 0 # EOM(1)
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
69 .byte 0 # EOM(2)
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
70 .byte 0 # EOM(3)
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
71 .section .debug_info,"",@progbits
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
72 .Lcu_begin0:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
73 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
74 .Ldebug_info_start0:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
75 .short 4 # DWARF version number
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
76 .long .debug_abbrev # Offset Into Abbrev. Section
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
77 .byte 8 # Address Size (in bytes)
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
78 .byte 2 # Abbrev [2] DW_TAG_compile_unit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
79 .long .Lline_table_start0 # DW_AT_stmt_list
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
80 .quad 0 # DW_AT_low_pc
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
81 .long .Ldebug_ranges0 # DW_AT_ranges --- end manual --
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
82 .Ldebug_info_end0:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
83
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
84 # Second CU table.
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
85 .long .Ldebug_info_end1-.Ldebug_info_start1 # Length of Unit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
86 .Ldebug_info_start1:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
87 .short 4 # DWARF version number
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
88 .long .debug_abbrev # Offset Into Abbrev. Section
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
89 .byte 8 # Address Size (in bytes)
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
90 .byte 1 # Abbrev [1] DW_TAG_compile_unit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
91 .long .Lline_table_start0 # DW_AT_stmt_list
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
92 .quad .Lfunc_begin0 # DW_AT_low_pc
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
93 .quad .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
94 .byte 0 # End Of Children Mark
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
95 .Ldebug_info_end1:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
96
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
97 # Third CU table.
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
98 .long .Ldebug_info_end2-.Ldebug_info_start2 # Length of Unit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
99 .Ldebug_info_start2:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
100 .short 4 # DWARF version number
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
101 .long .debug_abbrev # Offset Into Abbrev. Section
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
102 .byte 8 # Address Size (in bytes)
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
103 .byte 2 # Abbrev [2] DW_TAG_compile_unit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
104 .long .Lline_table_start0 # DW_AT_stmt_list
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
105 .quad 0 # DW_AT_low_pc
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
106 .long .Ldebug_ranges0 # DW_AT_ranges --- end manual --
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
107 .Ldebug_info_end2:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
108 .section .debug_ranges,"",@progbits
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
109 .Ldebug_ranges0:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
110 .quad .Lfunc_begin0
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
111 .quad .Lfunc_end0
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
112 .quad .Lfunc_begin0
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
113 .quad .Lfunc_end0
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
114 .quad 0
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
115 .quad 0
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
116 .section ".note.GNU-stack","",@progbits
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
117 .addrsig
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
118 .section .debug_line,"",@progbits
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
119 .Lline_table_start0: