1 // RUN: llvm-mc -triple=arm64-apple-ios -filetype=obj < %s | \
2 // RUN: llvm-readobj -sections -section-relocations -section-data | \
7 // FIXME: we should add compact unwind support to llvm-objdump -unwind-info
11 // CHECK-NEXT: Name: __compact_unwind
12 // CHECK-NEXT: Segment: __LD
13 // CHECK-NEXT: Address:
15 // CHECK-NEXT: Offset:
16 // CHECK-NEXT: Alignment:
17 // CHECK-NEXT: RelocationOffset:
18 // CHECK-NEXT: RelocationCount:
20 // CHECK-NEXT: Attributes [
23 // CHECK-NEXT: Reserved1:
24 // CHECK-NEXT: Reserved2:
25 // CHECK-NEXT: Relocations [
26 // CHECK-NEXT: 0x60 0 3 0 ARM64_RELOC_UNSIGNED 0 -
27 // CHECK-NEXT: 0x40 0 3 0 ARM64_RELOC_UNSIGNED 0 -
28 // CHECK-NEXT: 0x20 0 3 0 ARM64_RELOC_UNSIGNED 0 -
29 // CHECK-NEXT: 0x0 0 3 0 ARM64_RELOC_UNSIGNED 0 -
31 // CHECK-NEXT: SectionData (
32 // CHECK-NEXT: 0000: 00000000 00000000 08000000 00000002
33 // CHECK-NEXT: 0010: 00000000 00000000 00000000 00000000
34 // CHECK-NEXT: 0020: 08000000 00000000 40000000 00900002
35 // CHECK-NEXT: 0030: 00000000 00000000 00000000 00000000
36 // CHECK-NEXT: 0040: 48000000 00000000 D4000000 0F400002
37 // CHECK-NEXT: 0050: 00000000 00000000 00000000 00000000
38 // CHECK-NEXT: 0060: 1C010000 00000000 54000000 10100202
39 // CHECK-NEXT: 0070: 00000000 00000000 00000000 00000000
43 .section __TEXT,__text,regular,pure_instructions
49 add w0, w0, #42 ; =#42
58 sub sp, sp, #144 ; =#144
60 .cfi_def_cfa_offset 144
64 ; =>This Inner Loop Header: Depth=1
65 str w9, [x8, x9, lsl #2]
73 ; =>This Inner Loop Header: Depth=1
80 add sp, sp, #144 ; =#144
89 stp x26, x25, [sp, #-64]!
90 stp x24, x23, [sp, #16]
91 stp x22, x21, [sp, #32]
92 stp x20, x19, [sp, #48]
94 .cfi_def_cfa_offset 64
112 adrp x8, _bar@GOTPAGE
114 ldr x8, [x8, _bar@GOTPAGEOFF]
150 sub w8, w8, w7, lsl #1
151 sub w8, w8, w6, lsl #1
152 sub w8, w8, w5, lsl #1
153 sub w8, w8, w4, lsl #1
154 sub w8, w8, w3, lsl #1
155 sub w8, w8, w2, lsl #1
156 sub w0, w8, w1, lsl #1
157 ldp x20, x19, [sp, #48]
158 ldp x22, x21, [sp, #32]
159 ldp x24, x23, [sp, #16]
160 ldp x26, x25, [sp], #64
162 .loh AdrpLdrGot Lloh0, Lloh1
170 stp x28, x27, [sp, #-16]!
171 sub sp, sp, #512 ; =#512
173 .cfi_def_cfa_offset 528
178 ; kill: W0<def> W0<kill> X0<def>
180 ubfx x10, x0, #0, #32
183 ; =>This Inner Loop Header: Depth=1
185 str w11, [x8, x9, lsl #2]
189 ; BB#2: ; %for.cond2.preheader
192 add x8, x8, w5, sxtw #2
194 ; =>This Inner Loop Header: Depth=1
201 add sp, sp, #512 ; =#512
202 ldp x28, x27, [sp], #16
206 .comm _bar,4,2 ; @bar
208 .subsections_via_symbols