1 // RUN
: llvm-mc
-triple
=arm64-apple-ios
-filetype
=obj
-emit-compact-unwind-non-canonical
=true
< %s | \
2 // RUN
: llvm-objdump
--macho
--unwind-info
- | \
7 // CHECK
: Contents of __compact_unwind section
:
8 // CHECK-NEXT
: Entry at offset
0x0:
9 // CHECK-NEXT
: start
: 0x0 ltmp0
10 // CHECK-NEXT
: length
: 0x8
11 // CHECK-NEXT
: compact encoding
: 0x02000000
12 // CHECK-NEXT
: Entry at offset
0x20:
13 // CHECK-NEXT
: start
: 0x8 _foo2
14 // CHECK-NEXT
: length
: 0x40
15 // CHECK-NEXT
: compact encoding
: 0x02009000
16 // CHECK-NEXT
: Entry at offset
0x40:
17 // CHECK-NEXT
: start
: 0x48 _foo3
18 // CHECK-NEXT
: length
: 0xd4
19 // CHECK-NEXT
: compact encoding
: 0x0200400f
20 // CHECK-NEXT
: Entry at offset
0x60:
21 // CHECK-NEXT
: start
: 0x11c _foo4
22 // CHECK-NEXT
: length
: 0x54
23 // CHECK-NEXT
: compact encoding
: 0x02021010
25 .section __TEXT,__text,regular,pure_instructions
31 add w0
, w0
, #42 ; =#42
40 sub sp
, sp
, #144 ; =#144
42 .cfi_def_cfa_offset 144
46 ;
=>This Inner Loop Header
: Depth
=1
47 str w9
, [x8
, x9
, lsl
#2]
55 ;
=>This Inner Loop Header
: Depth
=1
62 add sp
, sp
, #144 ; =#144
71 stp x26
, x25
, [sp
, #-64]!
72 stp x24
, x23
, [sp
, #16]
73 stp x22
, x21
, [sp
, #32]
74 stp x20
, x19
, [sp
, #48]
76 .cfi_def_cfa_offset 64
96 ldr x8
, [x8
, _bar@GOTPAGEOFF
]
132 sub w8
, w8
, w7
, lsl
#1
133 sub w8
, w8
, w6
, lsl
#1
134 sub w8
, w8
, w5
, lsl
#1
135 sub w8
, w8
, w4
, lsl
#1
136 sub w8
, w8
, w3
, lsl
#1
137 sub w8
, w8
, w2
, lsl
#1
138 sub w0
, w8
, w1
, lsl
#1
139 ldp x20
, x19
, [sp
, #48]
140 ldp x22
, x21
, [sp
, #32]
141 ldp x24
, x23
, [sp
, #16]
142 ldp x26
, x25
, [sp
], #64
144 .loh AdrpLdrGot Lloh0, Lloh1
152 stp x28
, x27
, [sp
, #-16]!
153 sub sp
, sp
, #512 ; =#512
155 .cfi_def_cfa_offset 528
160 ; kill
: def W0 killed W0 def X0
162 ubfx x10
, x0
, #0, #32
165 ;
=>This Inner Loop Header
: Depth
=1
167 str w11
, [x8
, x9
, lsl
#2]
171 ;
%bb.2
: ;
%for.cond2.preheader
174 add x8
, x8
, w5
, sxtw
#2
176 ;
=>This Inner Loop Header
: Depth
=1
182 ;
%bb.4
: ;
%for.end11
183 add sp
, sp
, #512 ; =#512
184 ldp x28
, x27
, [sp
], #16
188 .comm _bar,4,2 ; @bar
190 .subsections_via_symbols