1 1.1 christos /* This testcase is part of GDB, the GNU debugger. 2 1.1 christos 3 1.11 christos Copyright 2012-2024 Free Software Foundation, Inc. 4 1.1 christos 5 1.1 christos This program is free software; you can redistribute it and/or modify 6 1.1 christos it under the terms of the GNU General Public License as published by 7 1.1 christos the Free Software Foundation; either version 3 of the License, or 8 1.1 christos (at your option) any later version. 9 1.1 christos 10 1.1 christos This program is distributed in the hope that it will be useful, 11 1.1 christos but WITHOUT ANY WARRANTY; without even the implied warranty of 12 1.1 christos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 1.1 christos GNU General Public License for more details. 14 1.1 christos 15 1.1 christos You should have received a copy of the GNU General Public License 16 1.1 christos along with this program. If not, see <http://www.gnu.org/licenses/>. */ 17 1.1 christos 18 1.1 christos /* This source file was generated by: 19 1.1 christos gcc -o gdb.arch/amd64-tailcall-ret.S gdb.arch/amd64-tailcall-ret.c -Wall -S -dA -O2 -g 20 1.1 christos */ 21 1.1 christos 22 1.1 christos .file "amd64-tailcall-ret.c" 23 1.1 christos .text 24 1.1 christos .Ltext0: 25 1.1 christos .p2align 4,,15 26 1.1 christos .type g, @function 27 1.1 christos g: 28 1.1 christos .LFB0: 29 1.1 christos .file 1 "gdb.arch/amd64-tailcall-ret.c" 30 1.1 christos # gdb.arch/amd64-tailcall-ret.c:22 31 1.1 christos .loc 1 22 0 32 1.1 christos .cfi_startproc 33 1.1 christos # BLOCK 2 freq:10000 seq:0 34 1.1 christos # PRED: ENTRY [100.0%] (fallthru) 35 1.1 christos # gdb.arch/amd64-tailcall-ret.c:23 36 1.1 christos .loc 1 23 0 37 1.1 christos movl $2, v(%rip) 38 1.1 christos # SUCC: EXIT [100.0%] 39 1.1 christos ret 40 1.1 christos .cfi_endproc 41 1.1 christos .LFE0: 42 1.1 christos .size g, .-g 43 1.1 christos .p2align 4,,15 44 1.1 christos .type f, @function 45 1.1 christos f: 46 1.1 christos .LFB1: 47 1.1 christos # gdb.arch/amd64-tailcall-ret.c:28 48 1.1 christos .loc 1 28 0 49 1.1 christos .cfi_startproc 50 1.1 christos # BLOCK 2 freq:10000 seq:0 51 1.1 christos # PRED: ENTRY [100.0%] (fallthru) 52 1.1 christos # gdb.arch/amd64-tailcall-ret.c:29 53 1.1 christos .loc 1 29 0 54 1.1 christos jmp g 55 1.1 christos # SUCC: EXIT [100.0%] (ab,sibcall) 56 1.1 christos .LVL0: 57 1.1 christos .cfi_endproc 58 1.1 christos .LFE1: 59 1.1 christos .size f, .-f 60 1.1 christos .section .text.startup,"ax",@progbits 61 1.1 christos .p2align 4,,15 62 1.1 christos .globl main 63 1.1 christos .type main, @function 64 1.1 christos main: 65 1.1 christos .LFB2: 66 1.1 christos # gdb.arch/amd64-tailcall-ret.c:34 67 1.1 christos .loc 1 34 0 68 1.1 christos .cfi_startproc 69 1.1 christos # BLOCK 2 freq:10000 seq:0 70 1.1 christos # PRED: ENTRY [100.0%] (fallthru) 71 1.1 christos # gdb.arch/amd64-tailcall-ret.c:35 72 1.1 christos .loc 1 35 0 73 1.1 christos call f 74 1.1 christos .LVL1: 75 1.1 christos # gdb.arch/amd64-tailcall-ret.c:36 76 1.1 christos .loc 1 36 0 77 1.1 christos call f 78 1.1 christos .LVL2: 79 1.1 christos # gdb.arch/amd64-tailcall-ret.c:37 80 1.1 christos .loc 1 37 0 81 1.1 christos movl $3, v(%rip) 82 1.1 christos # gdb.arch/amd64-tailcall-ret.c:39 83 1.1 christos .loc 1 39 0 84 1.1 christos xorl %eax, %eax 85 1.1 christos # SUCC: EXIT [100.0%] 86 1.1 christos ret 87 1.1 christos .cfi_endproc 88 1.1 christos .LFE2: 89 1.1 christos .size main, .-main 90 1.1 christos .comm v,4,4 91 1.1 christos .text 92 1.1 christos .Letext0: 93 1.1 christos .section .debug_info,"",@progbits 94 1.1 christos .Ldebug_info0: 95 1.1 christos .long 0xd5 # Length of Compilation Unit Info 96 1.1 christos .value 0x2 # DWARF version number 97 1.1 christos .long .Ldebug_abbrev0 # Offset Into Abbrev. Section 98 1.1 christos .byte 0x8 # Pointer Size (in bytes) 99 1.1 christos .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) 100 1.1 christos .long .LASF0 # DW_AT_producer: "GNU C 4.7.2 20120911 (prerelease)" 101 1.1 christos .byte 0x1 # DW_AT_language 102 1.1 christos .long .LASF1 # DW_AT_name: "gdb.arch/amd64-tailcall-ret.c" 103 1.1 christos .long .LASF2 # DW_AT_comp_dir: "" 104 1.1 christos .long .Ldebug_ranges0+0 # DW_AT_ranges 105 1.1 christos .quad 0 # DW_AT_low_pc 106 1.1 christos .quad 0 # DW_AT_entry_pc 107 1.1 christos .long .Ldebug_line0 # DW_AT_stmt_list 108 1.1 christos .uleb128 0x2 # (DIE (0x31) DW_TAG_subprogram) 109 1.1 christos .ascii "g\0" # DW_AT_name 110 1.1 christos .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-tailcall-ret.c) 111 1.1 christos .byte 0x15 # DW_AT_decl_line 112 1.1 christos .byte 0x1 # DW_AT_prototyped 113 1.1 christos .quad .LFB0 # DW_AT_low_pc 114 1.1 christos .quad .LFE0 # DW_AT_high_pc 115 1.1 christos .byte 0x2 # DW_AT_frame_base 116 1.1 christos .byte 0x77 # DW_OP_breg7 117 1.1 christos .sleb128 8 118 1.1 christos .byte 0x1 # DW_AT_GNU_all_call_sites 119 1.1 christos .uleb128 0x3 # (DIE (0x4b) DW_TAG_subprogram) 120 1.1 christos .ascii "f\0" # DW_AT_name 121 1.1 christos .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-tailcall-ret.c) 122 1.1 christos .byte 0x1b # DW_AT_decl_line 123 1.1 christos .byte 0x1 # DW_AT_prototyped 124 1.1 christos .quad .LFB1 # DW_AT_low_pc 125 1.1 christos .quad .LFE1 # DW_AT_high_pc 126 1.1 christos .byte 0x2 # DW_AT_frame_base 127 1.1 christos .byte 0x77 # DW_OP_breg7 128 1.1 christos .sleb128 8 129 1.1 christos .byte 0x1 # DW_AT_GNU_all_call_sites 130 1.1 christos .long 0x78 # DW_AT_sibling 131 1.1 christos .uleb128 0x4 # (DIE (0x69) DW_TAG_GNU_call_site) 132 1.1 christos .quad .LVL0 # DW_AT_low_pc 133 1.1 christos .byte 0x1 # DW_AT_GNU_tail_call 134 1.1 christos .long 0x31 # DW_AT_abstract_origin 135 1.1 christos .byte 0 # end of children of DIE 0x4b 136 1.1 christos .uleb128 0x5 # (DIE (0x78) DW_TAG_subprogram) 137 1.1 christos .byte 0x1 # DW_AT_external 138 1.1 christos .long .LASF3 # DW_AT_name: "main" 139 1.1 christos .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-tailcall-ret.c) 140 1.1 christos .byte 0x21 # DW_AT_decl_line 141 1.1 christos .byte 0x1 # DW_AT_prototyped 142 1.1 christos .long 0xb8 # DW_AT_type 143 1.1 christos .quad .LFB2 # DW_AT_low_pc 144 1.1 christos .quad .LFE2 # DW_AT_high_pc 145 1.1 christos .byte 0x2 # DW_AT_frame_base 146 1.1 christos .byte 0x77 # DW_OP_breg7 147 1.1 christos .sleb128 8 148 1.1 christos .byte 0x1 # DW_AT_GNU_all_call_sites 149 1.1 christos .long 0xb8 # DW_AT_sibling 150 1.1 christos .uleb128 0x6 # (DIE (0x9d) DW_TAG_GNU_call_site) 151 1.1 christos .quad .LVL1 # DW_AT_low_pc 152 1.1 christos .long 0x4b # DW_AT_abstract_origin 153 1.1 christos .uleb128 0x6 # (DIE (0xaa) DW_TAG_GNU_call_site) 154 1.1 christos .quad .LVL2 # DW_AT_low_pc 155 1.1 christos .long 0x4b # DW_AT_abstract_origin 156 1.1 christos .byte 0 # end of children of DIE 0x78 157 1.1 christos .uleb128 0x7 # (DIE (0xb8) DW_TAG_base_type) 158 1.1 christos .byte 0x4 # DW_AT_byte_size 159 1.1 christos .byte 0x5 # DW_AT_encoding 160 1.1 christos .ascii "int\0" # DW_AT_name 161 1.1 christos .uleb128 0x8 # (DIE (0xbf) DW_TAG_variable) 162 1.1 christos .ascii "v\0" # DW_AT_name 163 1.1 christos .byte 0x1 # DW_AT_decl_file (gdb.arch/amd64-tailcall-ret.c) 164 1.1 christos .byte 0x12 # DW_AT_decl_line 165 1.1 christos .long 0xd3 # DW_AT_type 166 1.1 christos .byte 0x1 # DW_AT_external 167 1.1 christos .byte 0x9 # DW_AT_location 168 1.1 christos .byte 0x3 # DW_OP_addr 169 1.1 christos .quad v 170 1.1 christos .uleb128 0x9 # (DIE (0xd3) DW_TAG_volatile_type) 171 1.1 christos .long 0xb8 # DW_AT_type 172 1.1 christos .byte 0 # end of children of DIE 0xb 173 1.1 christos .section .debug_abbrev,"",@progbits 174 1.1 christos .Ldebug_abbrev0: 175 1.1 christos .uleb128 0x1 # (abbrev code) 176 1.1 christos .uleb128 0x11 # (TAG: DW_TAG_compile_unit) 177 1.1 christos .byte 0x1 # DW_children_yes 178 1.1 christos .uleb128 0x25 # (DW_AT_producer) 179 1.1 christos .uleb128 0xe # (DW_FORM_strp) 180 1.1 christos .uleb128 0x13 # (DW_AT_language) 181 1.1 christos .uleb128 0xb # (DW_FORM_data1) 182 1.1 christos .uleb128 0x3 # (DW_AT_name) 183 1.1 christos .uleb128 0xe # (DW_FORM_strp) 184 1.1 christos .uleb128 0x1b # (DW_AT_comp_dir) 185 1.1 christos .uleb128 0xe # (DW_FORM_strp) 186 1.1 christos .uleb128 0x55 # (DW_AT_ranges) 187 1.1 christos .uleb128 0x6 # (DW_FORM_data4) 188 1.1 christos .uleb128 0x11 # (DW_AT_low_pc) 189 1.1 christos .uleb128 0x1 # (DW_FORM_addr) 190 1.1 christos .uleb128 0x52 # (DW_AT_entry_pc) 191 1.1 christos .uleb128 0x1 # (DW_FORM_addr) 192 1.1 christos .uleb128 0x10 # (DW_AT_stmt_list) 193 1.1 christos .uleb128 0x6 # (DW_FORM_data4) 194 1.1 christos .byte 0 195 1.1 christos .byte 0 196 1.1 christos .uleb128 0x2 # (abbrev code) 197 1.1 christos .uleb128 0x2e # (TAG: DW_TAG_subprogram) 198 1.1 christos .byte 0 # DW_children_no 199 1.1 christos .uleb128 0x3 # (DW_AT_name) 200 1.1 christos .uleb128 0x8 # (DW_FORM_string) 201 1.1 christos .uleb128 0x3a # (DW_AT_decl_file) 202 1.1 christos .uleb128 0xb # (DW_FORM_data1) 203 1.1 christos .uleb128 0x3b # (DW_AT_decl_line) 204 1.1 christos .uleb128 0xb # (DW_FORM_data1) 205 1.1 christos .uleb128 0x27 # (DW_AT_prototyped) 206 1.1 christos .uleb128 0xc # (DW_FORM_flag) 207 1.1 christos .uleb128 0x11 # (DW_AT_low_pc) 208 1.1 christos .uleb128 0x1 # (DW_FORM_addr) 209 1.1 christos .uleb128 0x12 # (DW_AT_high_pc) 210 1.1 christos .uleb128 0x1 # (DW_FORM_addr) 211 1.1 christos .uleb128 0x40 # (DW_AT_frame_base) 212 1.1 christos .uleb128 0xa # (DW_FORM_block1) 213 1.1 christos .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) 214 1.1 christos .uleb128 0xc # (DW_FORM_flag) 215 1.1 christos .byte 0 216 1.1 christos .byte 0 217 1.1 christos .uleb128 0x3 # (abbrev code) 218 1.1 christos .uleb128 0x2e # (TAG: DW_TAG_subprogram) 219 1.1 christos .byte 0x1 # DW_children_yes 220 1.1 christos .uleb128 0x3 # (DW_AT_name) 221 1.1 christos .uleb128 0x8 # (DW_FORM_string) 222 1.1 christos .uleb128 0x3a # (DW_AT_decl_file) 223 1.1 christos .uleb128 0xb # (DW_FORM_data1) 224 1.1 christos .uleb128 0x3b # (DW_AT_decl_line) 225 1.1 christos .uleb128 0xb # (DW_FORM_data1) 226 1.1 christos .uleb128 0x27 # (DW_AT_prototyped) 227 1.1 christos .uleb128 0xc # (DW_FORM_flag) 228 1.1 christos .uleb128 0x11 # (DW_AT_low_pc) 229 1.1 christos .uleb128 0x1 # (DW_FORM_addr) 230 1.1 christos .uleb128 0x12 # (DW_AT_high_pc) 231 1.1 christos .uleb128 0x1 # (DW_FORM_addr) 232 1.1 christos .uleb128 0x40 # (DW_AT_frame_base) 233 1.1 christos .uleb128 0xa # (DW_FORM_block1) 234 1.1 christos .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) 235 1.1 christos .uleb128 0xc # (DW_FORM_flag) 236 1.1 christos .uleb128 0x1 # (DW_AT_sibling) 237 1.1 christos .uleb128 0x13 # (DW_FORM_ref4) 238 1.1 christos .byte 0 239 1.1 christos .byte 0 240 1.1 christos .uleb128 0x4 # (abbrev code) 241 1.1 christos .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) 242 1.1 christos .byte 0 # DW_children_no 243 1.1 christos .uleb128 0x11 # (DW_AT_low_pc) 244 1.1 christos .uleb128 0x1 # (DW_FORM_addr) 245 1.1 christos .uleb128 0x2115 # (DW_AT_GNU_tail_call) 246 1.1 christos .uleb128 0xc # (DW_FORM_flag) 247 1.1 christos .uleb128 0x31 # (DW_AT_abstract_origin) 248 1.1 christos .uleb128 0x13 # (DW_FORM_ref4) 249 1.1 christos .byte 0 250 1.1 christos .byte 0 251 1.1 christos .uleb128 0x5 # (abbrev code) 252 1.1 christos .uleb128 0x2e # (TAG: DW_TAG_subprogram) 253 1.1 christos .byte 0x1 # DW_children_yes 254 1.1 christos .uleb128 0x3f # (DW_AT_external) 255 1.1 christos .uleb128 0xc # (DW_FORM_flag) 256 1.1 christos .uleb128 0x3 # (DW_AT_name) 257 1.1 christos .uleb128 0xe # (DW_FORM_strp) 258 1.1 christos .uleb128 0x3a # (DW_AT_decl_file) 259 1.1 christos .uleb128 0xb # (DW_FORM_data1) 260 1.1 christos .uleb128 0x3b # (DW_AT_decl_line) 261 1.1 christos .uleb128 0xb # (DW_FORM_data1) 262 1.1 christos .uleb128 0x27 # (DW_AT_prototyped) 263 1.1 christos .uleb128 0xc # (DW_FORM_flag) 264 1.1 christos .uleb128 0x49 # (DW_AT_type) 265 1.1 christos .uleb128 0x13 # (DW_FORM_ref4) 266 1.1 christos .uleb128 0x11 # (DW_AT_low_pc) 267 1.1 christos .uleb128 0x1 # (DW_FORM_addr) 268 1.1 christos .uleb128 0x12 # (DW_AT_high_pc) 269 1.1 christos .uleb128 0x1 # (DW_FORM_addr) 270 1.1 christos .uleb128 0x40 # (DW_AT_frame_base) 271 1.1 christos .uleb128 0xa # (DW_FORM_block1) 272 1.1 christos .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) 273 1.1 christos .uleb128 0xc # (DW_FORM_flag) 274 1.1 christos .uleb128 0x1 # (DW_AT_sibling) 275 1.1 christos .uleb128 0x13 # (DW_FORM_ref4) 276 1.1 christos .byte 0 277 1.1 christos .byte 0 278 1.1 christos .uleb128 0x6 # (abbrev code) 279 1.1 christos .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) 280 1.1 christos .byte 0 # DW_children_no 281 1.1 christos .uleb128 0x11 # (DW_AT_low_pc) 282 1.1 christos .uleb128 0x1 # (DW_FORM_addr) 283 1.1 christos .uleb128 0x31 # (DW_AT_abstract_origin) 284 1.1 christos .uleb128 0x13 # (DW_FORM_ref4) 285 1.1 christos .byte 0 286 1.1 christos .byte 0 287 1.1 christos .uleb128 0x7 # (abbrev code) 288 1.1 christos .uleb128 0x24 # (TAG: DW_TAG_base_type) 289 1.1 christos .byte 0 # DW_children_no 290 1.1 christos .uleb128 0xb # (DW_AT_byte_size) 291 1.1 christos .uleb128 0xb # (DW_FORM_data1) 292 1.1 christos .uleb128 0x3e # (DW_AT_encoding) 293 1.1 christos .uleb128 0xb # (DW_FORM_data1) 294 1.1 christos .uleb128 0x3 # (DW_AT_name) 295 1.1 christos .uleb128 0x8 # (DW_FORM_string) 296 1.1 christos .byte 0 297 1.1 christos .byte 0 298 1.1 christos .uleb128 0x8 # (abbrev code) 299 1.1 christos .uleb128 0x34 # (TAG: DW_TAG_variable) 300 1.1 christos .byte 0 # DW_children_no 301 1.1 christos .uleb128 0x3 # (DW_AT_name) 302 1.1 christos .uleb128 0x8 # (DW_FORM_string) 303 1.1 christos .uleb128 0x3a # (DW_AT_decl_file) 304 1.1 christos .uleb128 0xb # (DW_FORM_data1) 305 1.1 christos .uleb128 0x3b # (DW_AT_decl_line) 306 1.1 christos .uleb128 0xb # (DW_FORM_data1) 307 1.1 christos .uleb128 0x49 # (DW_AT_type) 308 1.1 christos .uleb128 0x13 # (DW_FORM_ref4) 309 1.1 christos .uleb128 0x3f # (DW_AT_external) 310 1.1 christos .uleb128 0xc # (DW_FORM_flag) 311 1.1 christos .uleb128 0x2 # (DW_AT_location) 312 1.1 christos .uleb128 0xa # (DW_FORM_block1) 313 1.1 christos .byte 0 314 1.1 christos .byte 0 315 1.1 christos .uleb128 0x9 # (abbrev code) 316 1.1 christos .uleb128 0x35 # (TAG: DW_TAG_volatile_type) 317 1.1 christos .byte 0 # DW_children_no 318 1.1 christos .uleb128 0x49 # (DW_AT_type) 319 1.1 christos .uleb128 0x13 # (DW_FORM_ref4) 320 1.1 christos .byte 0 321 1.1 christos .byte 0 322 1.1 christos .byte 0 323 1.1 christos .section .debug_aranges,"",@progbits 324 1.1 christos .long 0x3c # Length of Address Ranges Info 325 1.1 christos .value 0x2 # DWARF Version 326 1.1 christos .long .Ldebug_info0 # Offset of Compilation Unit Info 327 1.1 christos .byte 0x8 # Size of Address 328 1.1 christos .byte 0 # Size of Segment Descriptor 329 1.1 christos .value 0 # Pad to 16 byte boundary 330 1.1 christos .value 0 331 1.1 christos .quad .Ltext0 # Address 332 1.1 christos .quad .Letext0-.Ltext0 # Length 333 1.1 christos .quad .LFB2 # Address 334 1.1 christos .quad .LFE2-.LFB2 # Length 335 1.1 christos .quad 0 336 1.1 christos .quad 0 337 1.1 christos .section .debug_ranges,"",@progbits 338 1.1 christos .Ldebug_ranges0: 339 1.1 christos .quad .Ltext0 # Offset 0 340 1.1 christos .quad .Letext0 341 1.1 christos .quad .LFB2 # Offset 0x10 342 1.1 christos .quad .LFE2 343 1.1 christos .quad 0 344 1.1 christos .quad 0 345 1.1 christos .section .debug_line,"",@progbits 346 1.1 christos .Ldebug_line0: 347 1.1 christos .section .debug_str,"MS",@progbits,1 348 1.1 christos .LASF0: 349 1.1 christos .string "GNU C 4.7.2 20120911 (prerelease)" 350 1.1 christos .LASF1: 351 1.1 christos .string "gdb.arch/amd64-tailcall-ret.c" 352 1.1 christos .LASF2: 353 1.1 christos .string "" 354 1.1 christos .LASF3: 355 1.1 christos .string "main" 356 1.1 christos .ident "GCC: (GNU) 4.7.2 20120911 (prerelease)" 357 1.1 christos .section .note.GNU-stack,"",@progbits 358