[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / tools / dsymutil / ARM / fat-dylib-update.test
blob7d3e9ae0a435cd3c1368d130fe83a353075af0a9
1 # REQUIRES: object-emission,system-darwin
2 # RUN: dsymutil -oso-prepend-path %p/..  %p/../Inputs/fat-test.arm.dylib -o %t.dSYM
3 # RUN: llvm-dwarfdump -a -v %t.dSYM/Contents/Resources/DWARF/fat-test.arm.dylib | FileCheck %s
4 # RUN: dsymutil -u %t.dSYM
5 # RUN: llvm-dwarfdump -a -v %t.dSYM/Contents/Resources/DWARF/fat-test.arm.dylib | FileCheck %s
6 # RUN: dsymutil -u %t.dSYM -o %t1.dSYM
7 # RUN: llvm-dwarfdump -a -v %t1.dSYM/Contents/Resources/DWARF/fat-test.arm.dylib | FileCheck %s
9 CHECK: /Contents/Resources/DWARF/fat-test.arm.dylib(armv7):     file format Mach-O arm
11 CHECK: .debug_info contents:
12 CHECK:  Compile Unit: length = 0x00000034, format = DWARF32, version = 0x0002, abbr_offset = 0x0000, addr_size = 0x04 (next unit at 0x00000038)
13 CHECK:  DW_TAG_compile_unit [1] *
14 CHECK:    DW_AT_producer [DW_FORM_strp] ( .debug_str[0x00000001] = "clang version 3.8.0 (trunk 243776)")
15 CHECK:    DW_AT_language [DW_FORM_data2]        (DW_LANG_C99)
16 CHECK:    DW_AT_name [DW_FORM_strp]     ( .debug_str[0x00000024] = "fat-test.c")
17 CHECK:    DW_AT_stmt_list [DW_FORM_data4]       (0x00000000)
18 CHECK:    DW_AT_comp_dir [DW_FORM_strp] ( .debug_str[0x0000002f] = "/Inputs")
19 CHECK:    DW_TAG_variable [2]
20 CHECK:      DW_AT_name [DW_FORM_strp]   ( .debug_str[0x00000037] = "armv7_var")
21 CHECK:      DW_AT_type [DW_FORM_ref4]   (cu + 0x0030 => {0x00000030}
22 CHECK:      DW_AT_external [DW_FORM_flag]       (0x01)
23 CHECK:      DW_AT_decl_file [DW_FORM_data1]     ("/Inputs/fat-test.c")
24 CHECK:      DW_AT_decl_line [DW_FORM_data1]     (23)
25 CHECK:      DW_AT_location [DW_FORM_block1]     (DW_OP_addr 0x1000)
26 CHECK:    DW_TAG_base_type [3]
27 CHECK:      DW_AT_name [DW_FORM_strp]   ( .debug_str[0x00000041] = "int")
28 CHECK:      DW_AT_encoding [DW_FORM_data1]      (DW_ATE_signed)
29 CHECK:      DW_AT_byte_size [DW_FORM_data1]     (0x04)
30 CHECK:    NULL
33 CHECK: .debug_line contents:
34 CHECK: Line table prologue:
35 CHECK:     total_length: 0x0000002a
36 CHECK:          version: 2
37 CHECK:  prologue_length: 0x00000021
38 CHECK:  min_inst_length: 1
39 CHECK:  default_is_stmt: 1
40 CHECK:        line_base: -5
41 CHECK:       line_range: 14
42 CHECK:      opcode_base: 13
44 CHECK: .apple_names contents:
45 CHECK: String: 0x00000037 "armv7_var"
46 CHECK-NEXT: Data 0 [
47 CHECK-NEXT:   Atom[0]: 0x0000001e
48 CHECK-NEXT: ]
50 CHECK: .apple_types contents:
51 CHECK: String: 0x00000041 "int"
52 CHECK-NEXT: Data 0 [
53 CHECK-NEXT:   Atom[0]: 0x00000030
54 CHECK-NEXT:   Atom[1]: 0x0024
55 CHECK-NEXT:   Atom[2]: 0x00
56 CHECK-NEXT:   Atom[3]: 0x0c3a28a4
57 CHECK-NEXT: ]
59 CHECK: /Contents/Resources/DWARF/fat-test.arm.dylib(armv7s):    file format Mach-O arm
61 CHECK: .debug_info contents:
62 CHECK:  Compile Unit: length = 0x00000034, format = DWARF32, version = 0x0002, abbr_offset = 0x0000, addr_size = 0x04 (next unit at 0x00000038)
63 CHECK:  DW_TAG_compile_unit [1] *
64 CHECK:    DW_AT_producer [DW_FORM_strp] ( .debug_str[0x00000001] = "clang version 3.8.0 (trunk 243776)")
65 CHECK:    DW_AT_language [DW_FORM_data2]        (DW_LANG_C99)
66 CHECK:    DW_AT_name [DW_FORM_strp]     ( .debug_str[0x00000024] = "fat-test.c")
67 CHECK:    DW_AT_stmt_list [DW_FORM_data4]       (0x00000000)
68 CHECK:    DW_AT_comp_dir [DW_FORM_strp] ( .debug_str[0x0000002f] = "/Inputs")
69 CHECK:    DW_TAG_variable [2]
70 CHECK:      DW_AT_name [DW_FORM_strp]   ( .debug_str[0x00000037] = "armv7s_var")
71 CHECK:      DW_AT_type [DW_FORM_ref4]   (cu + 0x0030 => {0x00000030}
72 CHECK:      DW_AT_external [DW_FORM_flag]       (0x01)
73 CHECK:      DW_AT_decl_file [DW_FORM_data1]     ("/Inputs/fat-test.c")
74 CHECK:      DW_AT_decl_line [DW_FORM_data1]     (21)
75 CHECK:      DW_AT_location [DW_FORM_block1]     (DW_OP_addr 0x1000)
76 CHECK:    DW_TAG_base_type [3]
77 CHECK:      DW_AT_name [DW_FORM_strp]   ( .debug_str[0x00000042] = "int")
78 CHECK:      DW_AT_encoding [DW_FORM_data1]      (DW_ATE_signed)
79 CHECK:      DW_AT_byte_size [DW_FORM_data1]     (0x04)
80 CHECK:    NULL
82 CHECK: .debug_line contents:
83 CHECK: Line table prologue:
84 CHECK:     total_length: 0x0000002a
85 CHECK:          version: 2
86 CHECK:  prologue_length: 0x00000021
87 CHECK:  min_inst_length: 1
88 CHECK:  default_is_stmt: 1
89 CHECK:        line_base: -5
90 CHECK:       line_range: 14
91 CHECK:      opcode_base: 13
93 CHECK: .apple_names contents:
94 CHECK: String: 0x00000037 "armv7s_var"
95 CHECK-NEXT: Data 0 [
96 CHECK-NEXT:   Atom[0]: 0x0000001e
97 CHECK-NEXT: ]
99 CHECK: .apple_types contents:
100 CHECK: String: 0x00000042 "int"
101 CHECK-NEXT: Data 0 [
102 CHECK-NEXT:   Atom[0]: 0x00000030
103 CHECK-NEXT:   Atom[1]: 0x0024
104 CHECK-NEXT:   Atom[2]: 0x00
105 CHECK-NEXT:   Atom[3]: 0x0c3a28a4
106 CHECK-NEXT: ]
108 CHECK: /Contents/Resources/DWARF/fat-test.arm.dylib(arm64):     file format Mach-O arm64
110 CHECK: .debug_info contents:
111 CHECK:  Compile Unit: length = 0x00000038, format = DWARF32, version = 0x0002, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x0000003c)
112 CHECK:  DW_TAG_compile_unit [1] *
113 CHECK:    DW_AT_producer [DW_FORM_strp] ( .debug_str[0x00000001] = "clang version 3.8.0 (trunk 243776)")
114 CHECK:    DW_AT_language [DW_FORM_data2]        (DW_LANG_C99)
115 CHECK:    DW_AT_name [DW_FORM_strp]     ( .debug_str[0x00000024] = "fat-test.c")
116 CHECK:    DW_AT_stmt_list [DW_FORM_data4]       (0x00000000)
117 CHECK:    DW_AT_comp_dir [DW_FORM_strp] ( .debug_str[0x0000002f] = "/Inputs")
118 CHECK:    DW_TAG_variable [2]
119 CHECK:      DW_AT_name [DW_FORM_strp]   ( .debug_str[0x00000037] = "arm64_var")
120 CHECK:      DW_AT_type [DW_FORM_ref4]   (cu + 0x0034 => {0x00000034}
121 CHECK:      DW_AT_external [DW_FORM_flag]       (0x01)
122 CHECK:      DW_AT_decl_file [DW_FORM_data1]     ("/Inputs/fat-test.c")
123 CHECK:      DW_AT_decl_line [DW_FORM_data1]     (25)
124 CHECK:      DW_AT_location [DW_FORM_block1]     (DW_OP_addr 0x4000)
125 CHECK:    DW_TAG_base_type [3]
126 CHECK:      DW_AT_name [DW_FORM_strp]   ( .debug_str[0x00000041] = "int")
127 CHECK:      DW_AT_encoding [DW_FORM_data1]      (DW_ATE_signed)
128 CHECK:      DW_AT_byte_size [DW_FORM_data1]     (0x04)
129 CHECK:    NULL
131 CHECK: .debug_line contents:
132 CHECK: Line table prologue:
133 CHECK:     total_length: 0x0000002a
134 CHECK:          version: 2
135 CHECK:  prologue_length: 0x00000021
136 CHECK:  min_inst_length: 1
137 CHECK:  default_is_stmt: 1
138 CHECK:        line_base: -5
139 CHECK:       line_range: 14
140 CHECK:      opcode_base: 13
142 CHECK: .apple_names contents:
143 CHECK: String: 0x00000037 "arm64_var"
144 CHECK-NEXT: Data 0 [
145 CHECK-NEXT:   Atom[0]: 0x0000001e
146 CHECK-NEXT: ]
148 CHECK: .apple_types contents:
149 CHECK: String: 0x00000041 "int"
150 CHECK-NEXT: Data 0 [
151 CHECK-NEXT:   Atom[0]: 0x00000034
152 CHECK-NEXT:   Atom[1]: 0x0024
153 CHECK-NEXT:   Atom[2]: 0x00
154 CHECK-NEXT:   Atom[3]: 0x0c3a28a4
155 CHECK-NEXT: ]