blob: be4d204dc6126924a8ba429a9248cd70efed6bbd [file] [log] [blame]
/* This testcase is part of GDB, the GNU debugger.
Copyright 2024 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This file has been generated using gcc version 10.3.1 20210422
(Red Hat 10.3.1-1):
gcc -S -dA -g -mptwrite ptwrite.c -o x86_64-ptwrite.S. */
.file "ptwrite.c"
.text
.Ltext0:
.globl ptwrite1
.type ptwrite1, @function
ptwrite1:
.LFB4096:
.file 1 "ptwrite.c"
# ptwrite.c:22:1
.loc 1 22 1
.cfi_startproc
# BLOCK 2 seq:0
# PRED: ENTRY (FALLTHRU)
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, -20(%rbp)
# ptwrite.c:23:3
.loc 1 23 3
movl -20(%rbp), %eax
movl %eax, -4(%rbp)
.LBB6:
.LBB7:
.file 2 "/usr/lib/gcc/x86_64-redhat-linux/10/include/immintrin.h"
# /usr/lib/gcc/x86_64-redhat-linux/10/include/immintrin.h:307:3
.loc 2 307 3
movl -4(%rbp), %eax
ptwrite %eax
# /usr/lib/gcc/x86_64-redhat-linux/10/include/immintrin.h:308:1
.loc 2 308 1
nop
.LBE7:
.LBE6:
# ptwrite.c:24:1
.loc 1 24 1
nop
popq %rbp
.cfi_def_cfa 7, 8
# SUCC: EXIT [always]
ret
.cfi_endproc
.LFE4096:
.size ptwrite1, .-ptwrite1
.globl ptwrite2
.type ptwrite2, @function
ptwrite2:
.LFB4097:
# ptwrite.c:28:1
.loc 1 28 1
.cfi_startproc
# BLOCK 2 seq:0
# PRED: ENTRY (FALLTHRU)
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
movl %edi, -20(%rbp)
# ptwrite.c:29:3
.loc 1 29 3
movl -20(%rbp), %eax
movl %eax, -4(%rbp)
.LBB8:
.LBB9:
# /usr/lib/gcc/x86_64-redhat-linux/10/include/immintrin.h:307:3
.loc 2 307 3
movl -4(%rbp), %eax
ptwrite %eax
# /usr/lib/gcc/x86_64-redhat-linux/10/include/immintrin.h:308:1
.loc 2 308 1
nop
.LBE9:
.LBE8:
# ptwrite.c:30:1
.loc 1 30 1
nop
popq %rbp
.cfi_def_cfa 7, 8
# SUCC: EXIT [always]
ret
.cfi_endproc
.LFE4097:
.size ptwrite2, .-ptwrite2
.globl main
.type main, @function
main:
.LFB4098:
# ptwrite.c:34:1
.loc 1 34 1
.cfi_startproc
# BLOCK 2 seq:0
# PRED: ENTRY (FALLTHRU)
pushq %rbp
.cfi_def_cfa_offset 16
.cfi_offset 6, -16
movq %rsp, %rbp
.cfi_def_cfa_register 6
# ptwrite.c:35:3
.loc 1 35 3
movl $66, %edi
call ptwrite1
# ptwrite.c:36:3
.loc 1 36 3
movl $67, %edi
call ptwrite2
# ptwrite.c:38:10
.loc 1 38 10
movl $0, %eax
# ptwrite.c:39:1
.loc 1 39 1
popq %rbp
.cfi_def_cfa 7, 8
# SUCC: EXIT [always]
ret
.cfi_endproc
.LFE4098:
.size main, .-main
.Letext0:
.section .debug_info,"",@progbits
.Ldebug_info0:
.long 0x159 # Length of Compilation Unit Info
.value 0x4 # DWARF version number
.long .Ldebug_abbrev0 # Offset Into Abbrev. Section
.byte 0x8 # Pointer Size (in bytes)
.uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit)
.long .LASF15 # DW_AT_producer: "GNU C17 10.3.1 20210422 (Red Hat 10.3.1-1) -mptwrite -mtune=generic -march=x86-64 -g"
.byte 0xc # DW_AT_language
.long .LASF16 # DW_AT_name: "ptwrite.c"
.long .LASF17 # DW_AT_comp_dir: "gdb/gdb/testsuite/gdb.btrace"
.quad .Ltext0 # DW_AT_low_pc
.quad .Letext0-.Ltext0 # DW_AT_high_pc
.long .Ldebug_line0 # DW_AT_stmt_list
.uleb128 0x2 # (DIE (0x2d) DW_TAG_base_type)
.byte 0x4 # DW_AT_byte_size
.byte 0x5 # DW_AT_encoding
.ascii "int\0" # DW_AT_name
.uleb128 0x3 # (DIE (0x34) DW_TAG_base_type)
.byte 0x2 # DW_AT_byte_size
.byte 0x5 # DW_AT_encoding
.long .LASF0 # DW_AT_name: "short int"
.uleb128 0x3 # (DIE (0x3b) DW_TAG_base_type)
.byte 0x1 # DW_AT_byte_size
.byte 0x6 # DW_AT_encoding
.long .LASF1 # DW_AT_name: "char"
.uleb128 0x3 # (DIE (0x42) DW_TAG_base_type)
.byte 0x8 # DW_AT_byte_size
.byte 0x5 # DW_AT_encoding
.long .LASF2 # DW_AT_name: "long long int"
.uleb128 0x3 # (DIE (0x49) DW_TAG_base_type)
.byte 0x4 # DW_AT_byte_size
.byte 0x4 # DW_AT_encoding
.long .LASF3 # DW_AT_name: "float"
.uleb128 0x3 # (DIE (0x50) DW_TAG_base_type)
.byte 0x8 # DW_AT_byte_size
.byte 0x7 # DW_AT_encoding
.long .LASF4 # DW_AT_name: "long unsigned int"
.uleb128 0x3 # (DIE (0x57) DW_TAG_base_type)
.byte 0x8 # DW_AT_byte_size
.byte 0x5 # DW_AT_encoding
.long .LASF5 # DW_AT_name: "long int"
.uleb128 0x3 # (DIE (0x5e) DW_TAG_base_type)
.byte 0x1 # DW_AT_byte_size
.byte 0x8 # DW_AT_encoding
.long .LASF6 # DW_AT_name: "unsigned char"
.uleb128 0x3 # (DIE (0x65) DW_TAG_base_type)
.byte 0x2 # DW_AT_byte_size
.byte 0x7 # DW_AT_encoding
.long .LASF7 # DW_AT_name: "short unsigned int"
.uleb128 0x3 # (DIE (0x6c) DW_TAG_base_type)
.byte 0x4 # DW_AT_byte_size
.byte 0x7 # DW_AT_encoding
.long .LASF8 # DW_AT_name: "unsigned int"
.uleb128 0x3 # (DIE (0x73) DW_TAG_base_type)
.byte 0x1 # DW_AT_byte_size
.byte 0x6 # DW_AT_encoding
.long .LASF9 # DW_AT_name: "signed char"
.uleb128 0x3 # (DIE (0x7a) DW_TAG_base_type)
.byte 0x8 # DW_AT_byte_size
.byte 0x7 # DW_AT_encoding
.long .LASF10 # DW_AT_name: "long long unsigned int"
.uleb128 0x3 # (DIE (0x81) DW_TAG_base_type)
.byte 0x8 # DW_AT_byte_size
.byte 0x4 # DW_AT_encoding
.long .LASF11 # DW_AT_name: "double"
.uleb128 0x4 # (DIE (0x88) DW_TAG_subprogram)
# DW_AT_external
.long .LASF18 # DW_AT_name: "main"
.byte 0x1 # DW_AT_decl_file (ptwrite.c)
.byte 0x21 # DW_AT_decl_line
.byte 0x1 # DW_AT_decl_column
# DW_AT_prototyped
.long 0x2d # DW_AT_type
.quad .LFB4098 # DW_AT_low_pc
.quad .LFE4098-.LFB4098 # DW_AT_high_pc
.uleb128 0x1 # DW_AT_frame_base
.byte 0x9c # DW_OP_call_frame_cfa
# DW_AT_GNU_all_tail_call_sites
.uleb128 0x5 # (DIE (0xa6) DW_TAG_subprogram)
# DW_AT_external
.long .LASF12 # DW_AT_name: "ptwrite2"
.byte 0x1 # DW_AT_decl_file (ptwrite.c)
.byte 0x1b # DW_AT_decl_line
.byte 0x1 # DW_AT_decl_column
# DW_AT_prototyped
.quad .LFB4097 # DW_AT_low_pc
.quad .LFE4097-.LFB4097 # DW_AT_high_pc
.uleb128 0x1 # DW_AT_frame_base
.byte 0x9c # DW_OP_call_frame_cfa
# DW_AT_GNU_all_call_sites
.long 0xf5 # DW_AT_sibling
.uleb128 0x6 # (DIE (0xc4) DW_TAG_formal_parameter)
.long .LASF14 # DW_AT_name: "value"
.byte 0x1 # DW_AT_decl_file (ptwrite.c)
.byte 0x1b # DW_AT_decl_line
.byte 0xf # DW_AT_decl_column
.long 0x2d # DW_AT_type
.uleb128 0x2 # DW_AT_location
.byte 0x91 # DW_OP_fbreg
.sleb128 -36
.uleb128 0x7 # (DIE (0xd3) DW_TAG_inlined_subroutine)
.long 0x144 # DW_AT_abstract_origin
.quad .LBB8 # DW_AT_low_pc
.quad .LBE8-.LBB8 # DW_AT_high_pc
.byte 0x1 # DW_AT_call_file (ptwrite.c)
.byte 0x1d # DW_AT_call_line
.byte 0x3 # DW_AT_call_column
.uleb128 0x8 # (DIE (0xeb) DW_TAG_formal_parameter)
.long 0x14e # DW_AT_abstract_origin
.uleb128 0x2 # DW_AT_location
.byte 0x91 # DW_OP_fbreg
.sleb128 -20
.byte 0 # end of children of DIE 0xd3
.byte 0 # end of children of DIE 0xa6
.uleb128 0x5 # (DIE (0xf5) DW_TAG_subprogram)
# DW_AT_external
.long .LASF13 # DW_AT_name: "ptwrite1"
.byte 0x1 # DW_AT_decl_file (ptwrite.c)
.byte 0x15 # DW_AT_decl_line
.byte 0x1 # DW_AT_decl_column
# DW_AT_prototyped
.quad .LFB4096 # DW_AT_low_pc
.quad .LFE4096-.LFB4096 # DW_AT_high_pc
.uleb128 0x1 # DW_AT_frame_base
.byte 0x9c # DW_OP_call_frame_cfa
# DW_AT_GNU_all_call_sites
.long 0x144 # DW_AT_sibling
.uleb128 0x6 # (DIE (0x113) DW_TAG_formal_parameter)
.long .LASF14 # DW_AT_name: "value"
.byte 0x1 # DW_AT_decl_file (ptwrite.c)
.byte 0x15 # DW_AT_decl_line
.byte 0xf # DW_AT_decl_column
.long 0x2d # DW_AT_type
.uleb128 0x2 # DW_AT_location
.byte 0x91 # DW_OP_fbreg
.sleb128 -36
.uleb128 0x7 # (DIE (0x122) DW_TAG_inlined_subroutine)
.long 0x144 # DW_AT_abstract_origin
.quad .LBB6 # DW_AT_low_pc
.quad .LBE6-.LBB6 # DW_AT_high_pc
.byte 0x1 # DW_AT_call_file (ptwrite.c)
.byte 0x17 # DW_AT_call_line
.byte 0x3 # DW_AT_call_column
.uleb128 0x8 # (DIE (0x13a) DW_TAG_formal_parameter)
.long 0x14e # DW_AT_abstract_origin
.uleb128 0x2 # DW_AT_location
.byte 0x91 # DW_OP_fbreg
.sleb128 -20
.byte 0 # end of children of DIE 0x122
.byte 0 # end of children of DIE 0xf5
.uleb128 0x9 # (DIE (0x144) DW_TAG_subprogram)
# DW_AT_external
.long .LASF19 # DW_AT_name: "_ptwrite32"
.byte 0x2 # DW_AT_decl_file (/usr/lib/gcc/x86_64-redhat-linux/10/include/immintrin.h)
.value 0x131 # DW_AT_decl_line
.byte 0x1 # DW_AT_decl_column
# DW_AT_prototyped
.byte 0x3 # DW_AT_inline
# DW_AT_artificial
.uleb128 0xa # (DIE (0x14e) DW_TAG_formal_parameter)
.ascii "__B\0" # DW_AT_name
.byte 0x2 # DW_AT_decl_file (/usr/lib/gcc/x86_64-redhat-linux/10/include/immintrin.h)
.value 0x131 # DW_AT_decl_line
.byte 0x16 # DW_AT_decl_column
.long 0x6c # DW_AT_type
.byte 0 # end of children of DIE 0x144
.byte 0 # end of children of DIE 0xb
.section .debug_abbrev,"",@progbits
.Ldebug_abbrev0:
.uleb128 0x1 # (abbrev code)
.uleb128 0x11 # (TAG: DW_TAG_compile_unit)
.byte 0x1 # DW_children_yes
.uleb128 0x25 # (DW_AT_producer)
.uleb128 0xe # (DW_FORM_strp)
.uleb128 0x13 # (DW_AT_language)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x3 # (DW_AT_name)
.uleb128 0xe # (DW_FORM_strp)
.uleb128 0x1b # (DW_AT_comp_dir)
.uleb128 0xe # (DW_FORM_strp)
.uleb128 0x11 # (DW_AT_low_pc)
.uleb128 0x1 # (DW_FORM_addr)
.uleb128 0x12 # (DW_AT_high_pc)
.uleb128 0x7 # (DW_FORM_data8)
.uleb128 0x10 # (DW_AT_stmt_list)
.uleb128 0x17 # (DW_FORM_sec_offset)
.byte 0
.byte 0
.uleb128 0x2 # (abbrev code)
.uleb128 0x24 # (TAG: DW_TAG_base_type)
.byte 0 # DW_children_no
.uleb128 0xb # (DW_AT_byte_size)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x3e # (DW_AT_encoding)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x3 # (DW_AT_name)
.uleb128 0x8 # (DW_FORM_string)
.byte 0
.byte 0
.uleb128 0x3 # (abbrev code)
.uleb128 0x24 # (TAG: DW_TAG_base_type)
.byte 0 # DW_children_no
.uleb128 0xb # (DW_AT_byte_size)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x3e # (DW_AT_encoding)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x3 # (DW_AT_name)
.uleb128 0xe # (DW_FORM_strp)
.byte 0
.byte 0
.uleb128 0x4 # (abbrev code)
.uleb128 0x2e # (TAG: DW_TAG_subprogram)
.byte 0 # DW_children_no
.uleb128 0x3f # (DW_AT_external)
.uleb128 0x19 # (DW_FORM_flag_present)
.uleb128 0x3 # (DW_AT_name)
.uleb128 0xe # (DW_FORM_strp)
.uleb128 0x3a # (DW_AT_decl_file)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x3b # (DW_AT_decl_line)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x39 # (DW_AT_decl_column)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x27 # (DW_AT_prototyped)
.uleb128 0x19 # (DW_FORM_flag_present)
.uleb128 0x49 # (DW_AT_type)
.uleb128 0x13 # (DW_FORM_ref4)
.uleb128 0x11 # (DW_AT_low_pc)
.uleb128 0x1 # (DW_FORM_addr)
.uleb128 0x12 # (DW_AT_high_pc)
.uleb128 0x7 # (DW_FORM_data8)
.uleb128 0x40 # (DW_AT_frame_base)
.uleb128 0x18 # (DW_FORM_exprloc)
.uleb128 0x2116 # (DW_AT_GNU_all_tail_call_sites)
.uleb128 0x19 # (DW_FORM_flag_present)
.byte 0
.byte 0
.uleb128 0x5 # (abbrev code)
.uleb128 0x2e # (TAG: DW_TAG_subprogram)
.byte 0x1 # DW_children_yes
.uleb128 0x3f # (DW_AT_external)
.uleb128 0x19 # (DW_FORM_flag_present)
.uleb128 0x3 # (DW_AT_name)
.uleb128 0xe # (DW_FORM_strp)
.uleb128 0x3a # (DW_AT_decl_file)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x3b # (DW_AT_decl_line)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x39 # (DW_AT_decl_column)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x27 # (DW_AT_prototyped)
.uleb128 0x19 # (DW_FORM_flag_present)
.uleb128 0x11 # (DW_AT_low_pc)
.uleb128 0x1 # (DW_FORM_addr)
.uleb128 0x12 # (DW_AT_high_pc)
.uleb128 0x7 # (DW_FORM_data8)
.uleb128 0x40 # (DW_AT_frame_base)
.uleb128 0x18 # (DW_FORM_exprloc)
.uleb128 0x2117 # (DW_AT_GNU_all_call_sites)
.uleb128 0x19 # (DW_FORM_flag_present)
.uleb128 0x1 # (DW_AT_sibling)
.uleb128 0x13 # (DW_FORM_ref4)
.byte 0
.byte 0
.uleb128 0x6 # (abbrev code)
.uleb128 0x5 # (TAG: DW_TAG_formal_parameter)
.byte 0 # DW_children_no
.uleb128 0x3 # (DW_AT_name)
.uleb128 0xe # (DW_FORM_strp)
.uleb128 0x3a # (DW_AT_decl_file)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x3b # (DW_AT_decl_line)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x39 # (DW_AT_decl_column)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x49 # (DW_AT_type)
.uleb128 0x13 # (DW_FORM_ref4)
.uleb128 0x2 # (DW_AT_location)
.uleb128 0x18 # (DW_FORM_exprloc)
.byte 0
.byte 0
.uleb128 0x7 # (abbrev code)
.uleb128 0x1d # (TAG: DW_TAG_inlined_subroutine)
.byte 0x1 # DW_children_yes
.uleb128 0x31 # (DW_AT_abstract_origin)
.uleb128 0x13 # (DW_FORM_ref4)
.uleb128 0x11 # (DW_AT_low_pc)
.uleb128 0x1 # (DW_FORM_addr)
.uleb128 0x12 # (DW_AT_high_pc)
.uleb128 0x7 # (DW_FORM_data8)
.uleb128 0x58 # (DW_AT_call_file)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x59 # (DW_AT_call_line)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x57 # (DW_AT_call_column)
.uleb128 0xb # (DW_FORM_data1)
.byte 0
.byte 0
.uleb128 0x8 # (abbrev code)
.uleb128 0x5 # (TAG: DW_TAG_formal_parameter)
.byte 0 # DW_children_no
.uleb128 0x31 # (DW_AT_abstract_origin)
.uleb128 0x13 # (DW_FORM_ref4)
.uleb128 0x2 # (DW_AT_location)
.uleb128 0x18 # (DW_FORM_exprloc)
.byte 0
.byte 0
.uleb128 0x9 # (abbrev code)
.uleb128 0x2e # (TAG: DW_TAG_subprogram)
.byte 0x1 # DW_children_yes
.uleb128 0x3f # (DW_AT_external)
.uleb128 0x19 # (DW_FORM_flag_present)
.uleb128 0x3 # (DW_AT_name)
.uleb128 0xe # (DW_FORM_strp)
.uleb128 0x3a # (DW_AT_decl_file)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x3b # (DW_AT_decl_line)
.uleb128 0x5 # (DW_FORM_data2)
.uleb128 0x39 # (DW_AT_decl_column)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x27 # (DW_AT_prototyped)
.uleb128 0x19 # (DW_FORM_flag_present)
.uleb128 0x20 # (DW_AT_inline)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x34 # (DW_AT_artificial)
.uleb128 0x19 # (DW_FORM_flag_present)
.byte 0
.byte 0
.uleb128 0xa # (abbrev code)
.uleb128 0x5 # (TAG: DW_TAG_formal_parameter)
.byte 0 # DW_children_no
.uleb128 0x3 # (DW_AT_name)
.uleb128 0x8 # (DW_FORM_string)
.uleb128 0x3a # (DW_AT_decl_file)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x3b # (DW_AT_decl_line)
.uleb128 0x5 # (DW_FORM_data2)
.uleb128 0x39 # (DW_AT_decl_column)
.uleb128 0xb # (DW_FORM_data1)
.uleb128 0x49 # (DW_AT_type)
.uleb128 0x13 # (DW_FORM_ref4)
.byte 0
.byte 0
.byte 0
.section .debug_aranges,"",@progbits
.long 0x2c # Length of Address Ranges Info
.value 0x2 # DWARF aranges version
.long .Ldebug_info0 # Offset of Compilation Unit Info
.byte 0x8 # Size of Address
.byte 0 # Size of Segment Descriptor
.value 0 # Pad to 16 byte boundary
.value 0
.quad .Ltext0 # Address
.quad .Letext0-.Ltext0 # Length
.quad 0
.quad 0
.section .debug_line,"",@progbits
.Ldebug_line0:
.section .debug_str,"MS",@progbits,1
.LASF2:
.string "long long int"
.LASF14:
.string "value"
.LASF19:
.string "_ptwrite32"
.LASF8:
.string "unsigned int"
.LASF17:
.string "gdb/gdb/testsuite/gdb.btrace"
.LASF18:
.string "main"
.LASF16:
.string "ptwrite.c"
.LASF4:
.string "long unsigned int"
.LASF10:
.string "long long unsigned int"
.LASF15:
.string "GNU C17 10.3.1 20210422 (Red Hat 10.3.1-1) -mptwrite -mtune=generic -march=x86-64 -g"
.LASF13:
.string "ptwrite1"
.LASF12:
.string "ptwrite2"
.LASF6:
.string "unsigned char"
.LASF1:
.string "char"
.LASF5:
.string "long int"
.LASF11:
.string "double"
.LASF7:
.string "short unsigned int"
.LASF9:
.string "signed char"
.LASF3:
.string "float"
.LASF0:
.string "short int"
.ident "GCC: (GNU) 10.3.1 20210422 (Red Hat 10.3.1-1)"
.section .note.GNU-stack,"",@progbits