281 lines · plain
1// REQUIRES: aarch64-registered-target2 3// RUN: llvm-mc -filetype=obj -triple=aarch64-linux-android -o %t.o %s4// RUN: echo 'FRAME %t.o 4' | llvm-symbolizer | FileCheck %s5 6// Built from the following source with7// clang -target aarch64-linux-android -O3 -g -S8//9// class A {10// static void f();11// };12//13// void use(int*);14// void A::f() {int x; use(&x);}15 16// CHECK: {{^f$}}17// CHECK-NEXT: {{^x$}}18// CHECK-NEXT: {{.*}}dbg.cc:619// CHECK-NEXT: -4 4 ??20 21 .text22 .file "dbg.cc"23 .globl _ZN1A1fEv // -- Begin function _ZN1A1fEv24 .p2align 225 .type _ZN1A1fEv,@function26_ZN1A1fEv: // @_ZN1A1fEv27.Lfunc_begin0:28 .file 1 "/tmp" "dbg.cc"29 .loc 1 6 0 // /tmp/dbg.cc:6:030 .cfi_startproc31// %bb.0: // %entry32 sub sp, sp, #32 // =3233 stp x29, x30, [sp, #16] // 16-byte Folded Spill34 add x29, sp, #16 // =1635 .cfi_def_cfa w29, 1636 .cfi_offset w30, -837 .cfi_offset w29, -1638.Ltmp0:39 //DEBUG_VALUE: f:x <- [DW_OP_constu 4, DW_OP_minus, DW_OP_deref] $fp40 .loc 1 6 21 prologue_end // /tmp/dbg.cc:6:2141 sub x0, x29, #4 // =442 bl _Z3usePi43.Ltmp1:44 .loc 1 6 29 is_stmt 0 // /tmp/dbg.cc:6:2945 ldp x29, x30, [sp, #16] // 16-byte Folded Reload46 add sp, sp, #32 // =3247 ret48.Ltmp2:49.Lfunc_end0:50 .size _ZN1A1fEv, .Lfunc_end0-_ZN1A1fEv51 .cfi_endproc52 // -- End function53 .section .debug_str,"MS",@progbits,154.Linfo_string0:55 .asciz "clang version 10.0.0 (git@github.com:llvm/llvm-project.git 092ef9c6cf4678d2b8df7738110ecd405fe1fe3d)" // string offset=056.Linfo_string1:57 .asciz "/tmp/dbg.cc" // string offset=10158.Linfo_string2:59 .asciz "/code/build-llvm-cmake" // string offset=11360.Linfo_string3:61 .asciz "_ZN1A1fEv" // string offset=13662.Linfo_string4:63 .asciz "f" // string offset=14664.Linfo_string5:65 .asciz "A" // string offset=14866.Linfo_string6:67 .asciz "_Z3usePi" // string offset=15068.Linfo_string7:69 .asciz "use" // string offset=15970.Linfo_string8:71 .asciz "int" // string offset=16372.Linfo_string9:73 .asciz "x" // string offset=16774 .section .debug_abbrev,"",@progbits75 .byte 1 // Abbreviation Code76 .byte 17 // DW_TAG_compile_unit77 .byte 1 // DW_CHILDREN_yes78 .byte 37 // DW_AT_producer79 .byte 14 // DW_FORM_strp80 .byte 19 // DW_AT_language81 .byte 5 // DW_FORM_data282 .byte 3 // DW_AT_name83 .byte 14 // DW_FORM_strp84 .byte 16 // DW_AT_stmt_list85 .byte 23 // DW_FORM_sec_offset86 .byte 27 // DW_AT_comp_dir87 .byte 14 // DW_FORM_strp88 .byte 17 // DW_AT_low_pc89 .byte 1 // DW_FORM_addr90 .byte 18 // DW_AT_high_pc91 .byte 6 // DW_FORM_data492 .byte 0 // EOM(1)93 .byte 0 // EOM(2)94 .byte 2 // Abbreviation Code95 .byte 2 // DW_TAG_class_type96 .byte 1 // DW_CHILDREN_yes97 .byte 54 // DW_AT_calling_convention98 .byte 11 // DW_FORM_data199 .byte 3 // DW_AT_name100 .byte 14 // DW_FORM_strp101 .byte 11 // DW_AT_byte_size102 .byte 11 // DW_FORM_data1103 .byte 58 // DW_AT_decl_file104 .byte 11 // DW_FORM_data1105 .byte 59 // DW_AT_decl_line106 .byte 11 // DW_FORM_data1107 .byte 0 // EOM(1)108 .byte 0 // EOM(2)109 .byte 3 // Abbreviation Code110 .byte 46 // DW_TAG_subprogram111 .byte 0 // DW_CHILDREN_no112 .byte 110 // DW_AT_linkage_name113 .byte 14 // DW_FORM_strp114 .byte 3 // DW_AT_name115 .byte 14 // DW_FORM_strp116 .byte 58 // DW_AT_decl_file117 .byte 11 // DW_FORM_data1118 .byte 59 // DW_AT_decl_line119 .byte 11 // DW_FORM_data1120 .byte 60 // DW_AT_declaration121 .byte 25 // DW_FORM_flag_present122 .byte 63 // DW_AT_external123 .byte 25 // DW_FORM_flag_present124 .byte 0 // EOM(1)125 .byte 0 // EOM(2)126 .byte 4 // Abbreviation Code127 .byte 46 // DW_TAG_subprogram128 .byte 1 // DW_CHILDREN_yes129 .byte 17 // DW_AT_low_pc130 .byte 1 // DW_FORM_addr131 .byte 18 // DW_AT_high_pc132 .byte 6 // DW_FORM_data4133 .byte 64 // DW_AT_frame_base134 .byte 24 // DW_FORM_exprloc135 .ascii "\227B" // DW_AT_GNU_all_call_sites136 .byte 25 // DW_FORM_flag_present137 .byte 59 // DW_AT_decl_line138 .byte 11 // DW_FORM_data1139 .byte 71 // DW_AT_specification140 .byte 19 // DW_FORM_ref4141 .byte 0 // EOM(1)142 .byte 0 // EOM(2)143 .byte 5 // Abbreviation Code144 .byte 52 // DW_TAG_variable145 .byte 0 // DW_CHILDREN_no146 .byte 2 // DW_AT_location147 .byte 24 // DW_FORM_exprloc148 .byte 3 // DW_AT_name149 .byte 14 // DW_FORM_strp150 .byte 58 // DW_AT_decl_file151 .byte 11 // DW_FORM_data1152 .byte 59 // DW_AT_decl_line153 .byte 11 // DW_FORM_data1154 .byte 73 // DW_AT_type155 .byte 19 // DW_FORM_ref4156 .byte 0 // EOM(1)157 .byte 0 // EOM(2)158 .byte 6 // Abbreviation Code159 .ascii "\211\202\001" // DW_TAG_GNU_call_site160 .byte 0 // DW_CHILDREN_no161 .byte 49 // DW_AT_abstract_origin162 .byte 19 // DW_FORM_ref4163 .byte 17 // DW_AT_low_pc164 .byte 1 // DW_FORM_addr165 .byte 0 // EOM(1)166 .byte 0 // EOM(2)167 .byte 7 // Abbreviation Code168 .byte 46 // DW_TAG_subprogram169 .byte 1 // DW_CHILDREN_yes170 .byte 110 // DW_AT_linkage_name171 .byte 14 // DW_FORM_strp172 .byte 3 // DW_AT_name173 .byte 14 // DW_FORM_strp174 .byte 58 // DW_AT_decl_file175 .byte 11 // DW_FORM_data1176 .byte 59 // DW_AT_decl_line177 .byte 11 // DW_FORM_data1178 .byte 60 // DW_AT_declaration179 .byte 25 // DW_FORM_flag_present180 .byte 63 // DW_AT_external181 .byte 25 // DW_FORM_flag_present182 .byte 0 // EOM(1)183 .byte 0 // EOM(2)184 .byte 8 // Abbreviation Code185 .byte 5 // DW_TAG_formal_parameter186 .byte 0 // DW_CHILDREN_no187 .byte 73 // DW_AT_type188 .byte 19 // DW_FORM_ref4189 .byte 0 // EOM(1)190 .byte 0 // EOM(2)191 .byte 9 // Abbreviation Code192 .byte 15 // DW_TAG_pointer_type193 .byte 0 // DW_CHILDREN_no194 .byte 73 // DW_AT_type195 .byte 19 // DW_FORM_ref4196 .byte 0 // EOM(1)197 .byte 0 // EOM(2)198 .byte 10 // Abbreviation Code199 .byte 36 // DW_TAG_base_type200 .byte 0 // DW_CHILDREN_no201 .byte 3 // DW_AT_name202 .byte 14 // DW_FORM_strp203 .byte 62 // DW_AT_encoding204 .byte 11 // DW_FORM_data1205 .byte 11 // DW_AT_byte_size206 .byte 11 // DW_FORM_data1207 .byte 0 // EOM(1)208 .byte 0 // EOM(2)209 .byte 0 // EOM(3)210 .section .debug_info,"",@progbits211.Lcu_begin0:212 .word .Ldebug_info_end0-.Ldebug_info_start0 // Length of Unit213.Ldebug_info_start0:214 .hword 4 // DWARF version number215 .word .debug_abbrev // Offset Into Abbrev. Section216 .byte 8 // Address Size (in bytes)217 .byte 1 // Abbrev [1] 0xb:0x82 DW_TAG_compile_unit218 .word .Linfo_string0 // DW_AT_producer219 .hword 33 // DW_AT_language220 .word .Linfo_string1 // DW_AT_name221 .word .Lline_table_start0 // DW_AT_stmt_list222 .word .Linfo_string2 // DW_AT_comp_dir223 .xword .Lfunc_begin0 // DW_AT_low_pc224 .word .Lfunc_end0-.Lfunc_begin0 // DW_AT_high_pc225 .byte 2 // Abbrev [2] 0x2a:0x15 DW_TAG_class_type226 .byte 5 // DW_AT_calling_convention227 .word .Linfo_string5 // DW_AT_name228 .byte 1 // DW_AT_byte_size229 .byte 1 // DW_AT_decl_file230 .byte 1 // DW_AT_decl_line231 .byte 3 // Abbrev [3] 0x33:0xb DW_TAG_subprogram232 .word .Linfo_string3 // DW_AT_linkage_name233 .word .Linfo_string4 // DW_AT_name234 .byte 1 // DW_AT_decl_file235 .byte 2 // DW_AT_decl_line236 // DW_AT_declaration237 // DW_AT_external238 .byte 0 // End Of Children Mark239 .byte 4 // Abbrev [4] 0x3f:0x30 DW_TAG_subprogram240 .xword .Lfunc_begin0 // DW_AT_low_pc241 .word .Lfunc_end0-.Lfunc_begin0 // DW_AT_high_pc242 .byte 1 // DW_AT_frame_base243 .byte 109244 // DW_AT_GNU_all_call_sites245 .byte 6 // DW_AT_decl_line246 .word 51 // DW_AT_specification247 .byte 5 // Abbrev [5] 0x53:0xe DW_TAG_variable248 .byte 2 // DW_AT_location249 .byte 145250 .byte 124251 .word .Linfo_string9 // DW_AT_name252 .byte 1 // DW_AT_decl_file253 .byte 6 // DW_AT_decl_line254 .word 133 // DW_AT_type255 .byte 6 // Abbrev [6] 0x61:0xd DW_TAG_GNU_call_site256 .word 111 // DW_AT_abstract_origin257 .xword .Ltmp1 // DW_AT_low_pc258 .byte 0 // End Of Children Mark259 .byte 7 // Abbrev [7] 0x6f:0x11 DW_TAG_subprogram260 .word .Linfo_string6 // DW_AT_linkage_name261 .word .Linfo_string7 // DW_AT_name262 .byte 1 // DW_AT_decl_file263 .byte 5 // DW_AT_decl_line264 // DW_AT_declaration265 // DW_AT_external266 .byte 8 // Abbrev [8] 0x7a:0x5 DW_TAG_formal_parameter267 .word 128 // DW_AT_type268 .byte 0 // End Of Children Mark269 .byte 9 // Abbrev [9] 0x80:0x5 DW_TAG_pointer_type270 .word 133 // DW_AT_type271 .byte 10 // Abbrev [10] 0x85:0x7 DW_TAG_base_type272 .word .Linfo_string8 // DW_AT_name273 .byte 5 // DW_AT_encoding274 .byte 4 // DW_AT_byte_size275 .byte 0 // End Of Children Mark276.Ldebug_info_end0:277 .ident "clang version 10.0.0 (git@github.com:llvm/llvm-project.git 092ef9c6cf4678d2b8df7738110ecd405fe1fe3d)"278 .section ".note.GNU-stack","",@progbits279 .section .debug_line,"",@progbits280.Lline_table_start0:281