brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.9 KiB · ab0ea03 Raw
105 lines · plain
1// RUN: mkdir -p %t0 && cd %t0 && llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t2// RUN: llvm-dwarfdump -all %t | FileCheck %s3 4.globl _bar5_bar:6	movl	$0, %eax7L1:	leave8	ret9_foo:10_baz:11	nop12.data13_x:	.long 114 15// CHECK: file format Mach-O 32-bit i38616 17// CHECK: .debug_abbrev contents:18// CHECK: Abbrev table for offset: 0x0000000019// CHECK: [1] DW_TAG_compile_unit	DW_CHILDREN_yes20// CHECK: 	DW_AT_stmt_list	DW_FORM_sec_offset21// CHECK: 	DW_AT_low_pc	DW_FORM_addr22// CHECK: 	DW_AT_high_pc	DW_FORM_addr23// CHECK: 	DW_AT_name	DW_FORM_string24// CHECK: 	DW_AT_comp_dir	DW_FORM_string25// CHECK: 	DW_AT_producer	DW_FORM_string26// CHECK: 	DW_AT_language	DW_FORM_data227 28// CHECK: [2] DW_TAG_label	DW_CHILDREN_no29// CHECK: 	DW_AT_name	DW_FORM_string30// CHECK: 	DW_AT_decl_file	DW_FORM_data431// CHECK: 	DW_AT_decl_line	DW_FORM_data432// CHECK: 	DW_AT_low_pc	DW_FORM_addr33 34 35// CHECK: .debug_info contents:36 37// We don't check the leading addresses these are at.38// CHECK:  DW_TAG_compile_unit39// CHECK:    DW_AT_stmt_list (0x00000000)40// CHECK:    DW_AT_low_pc (0x00000000)41// CHECK:    DW_AT_high_pc (0x00000008)42// We don't check the file name as it is a temp directory43// CHECK:    DW_AT_name44// We don't check the DW_AT_comp_dir which is the current working directory45// CHECK:    DW_AT_producer ("llvm-mc (based on {{.*}})")46// CHECK:    DW_AT_language (DW_LANG_Mips_Assembler)47 48// CHECK:    DW_TAG_label49// CHECK:      DW_AT_name ("bar")50// CHECK:      DW_AT_decl_file ([[FILE:".*gen-dwarf.s"]])51// CHECK:      DW_AT_decl_line (5)52// CHECK:      DW_AT_low_pc (0x00000000)53 54// CHECK:    DW_TAG_label55// CHECK:      DW_AT_name ("foo")56// CHECK:      DW_AT_decl_file ([[FILE]])57// CHECK:      DW_AT_decl_line (9)58// CHECK:      DW_AT_low_pc (0x00000007)59 60// CHECK:    DW_TAG_label61// CHECK:      DW_AT_name ("baz")62// CHECK:      DW_AT_decl_file ([[FILE]])63// CHECK:      DW_AT_decl_line (10)64// CHECK:      DW_AT_low_pc (0x00000007)65 66// CHECK:    NULL67 68// CHECK: .debug_aranges contents:69// CHECK: Address Range Header: length = 0x0000001c, format = DWARF32, version = 0x0002, cu_offset = 0x00000000, addr_size = 0x04, seg_size = 0x0070 71// CHECK: .debug_line contents:72// CHECK: Line table prologue:73// We don't check the total_length as it includes lengths of temp paths74// CHECK:         version: 475// We don't check the prologue_length as it too includes lengths of temp paths76// CHECK: min_inst_length: 177// CHECK: default_is_stmt: 178// CHECK:       line_base: -579// CHECK:      line_range: 1480// CHECK:     opcode_base: 1381// CHECK: standard_opcode_lengths[DW_LNS_copy] = 082// CHECK: standard_opcode_lengths[DW_LNS_advance_pc] = 183// CHECK: standard_opcode_lengths[DW_LNS_advance_line] = 184// CHECK: standard_opcode_lengths[DW_LNS_set_file] = 185// CHECK: standard_opcode_lengths[DW_LNS_set_column] = 186// CHECK: standard_opcode_lengths[DW_LNS_negate_stmt] = 087// CHECK: standard_opcode_lengths[DW_LNS_set_basic_block] = 088// CHECK: standard_opcode_lengths[DW_LNS_const_add_pc] = 089// CHECK: standard_opcode_lengths[DW_LNS_fixed_advance_pc] = 190// CHECK: standard_opcode_lengths[DW_LNS_set_prologue_end] = 091// CHECK: standard_opcode_lengths[DW_LNS_set_epilogue_begin] = 092// CHECK: standard_opcode_lengths[DW_LNS_set_isa] = 193// We don't check include_directories as it has a temp path94// CHECK: file_names[  1]:95// CHECK-NEXT: name: "gen-dwarf.s"96// CHECK-NEXT: dir_index: 197 98// CHECK: Address            Line   Column File   ISA Discriminator OpIndex Flags99// CHECK: ------------------ ------ ------ ------ --- ------------- ------- -------------100// CHECK: 0x0000000000000000      6      0      1   0             0       0  is_stmt101// CHECK: 0x0000000000000005      7      0      1   0             0       0  is_stmt102// CHECK: 0x0000000000000006      8      0      1   0             0       0  is_stmt103// CHECK: 0x0000000000000007     11      0      1   0             0       0  is_stmt104// CHECK: 0x0000000000000008     11      0      1   0             0       0  is_stmt end_sequence105