1 RUN: llvm-readobj --unwind %p/Inputs/arm64-win1.obj | FileCheck %s -check-prefix=UNWIND1
2 RUN: llvm-readobj --unwind %p/Inputs/arm64-win2.obj | FileCheck %s -check-prefix=UNWIND2
4 UNWIND1: ExceptionData {
5 UNWIND1-NEXT: FunctionLength: 340
6 UNWIND1-NEXT: Version: 0
7 UNWIND1-NEXT: ExceptionData: No
8 UNWIND1-NEXT: EpiloguePacked: Yes
9 UNWIND1-NEXT: EpilogueOffset: 15
10 UNWIND1-NEXT: ByteCodeLength: 28
11 UNWIND1-NEXT: Prologue [
12 UNWIND1-NEXT: 0xe002dac8 ; sub sp, #2993280
13 UNWIND1-NEXT: 0xe3 ; nop
14 UNWIND1-NEXT: 0xe3 ; nop
15 UNWIND1-NEXT: 0xe3 ; nop
16 UNWIND1-NEXT: 0xd885 ; stp d10, d11, [sp, #40]
17 UNWIND1-NEXT: 0xd803 ; stp d8, d9, [sp, #24]
18 UNWIND1-NEXT: 0xd2c2 ; str x30, [sp, #16]
19 UNWIND1-NEXT: 0x28 ; stp x19, x20, [sp, #-64]!
20 UNWIND1-NEXT: 0xe4 ; end
22 UNWIND1-NEXT: Epilogue [
23 UNWIND1-NEXT: 0xe002dac8 ; add sp, #2993280
24 UNWIND1-NEXT: 0xd885 ; ldp d10, d11, [sp, #40]
25 UNWIND1-NEXT: 0xd803 ; ldp d8, d9, [sp, #24]
26 UNWIND1-NEXT: 0xd2c2 ; ldr x30, [sp, #16]
27 UNWIND1-NEXT: 0x28 ; ldp x19, x20, [sp], #64
28 UNWIND1-NEXT: 0xe4 ; end
33 UNWIND2: ExceptionData {
34 UNWIND2-NEXT: FunctionLength: 72
35 UNWIND2-NEXT: Version: 0
36 UNWIND2-NEXT: ExceptionData: No
37 UNWIND2-NEXT: EpiloguePacked: No
38 UNWIND2-NEXT: EpilogueScopes: 2
39 UNWIND2-NEXT: ByteCodeLength: 8
40 UNWIND2-NEXT: Prologue [
41 UNWIND2-NEXT: 0x1f ; sub sp, #496
42 UNWIND2-NEXT: 0xd600 ; stp x19, lr, [sp, #0]
43 UNWIND2-NEXT: 0x01 ; sub sp, #16
44 UNWIND2-NEXT: 0xe4 ; end
46 UNWIND2-NEXT: EpilogueScopes [
47 UNWIND2-NEXT: EpilogueScope {
48 UNWIND2-NEXT: StartOffset: 8
49 UNWIND2-NEXT: EpilogueStartIndex: 0
50 UNWIND2-NEXT: Opcodes [
51 UNWIND2-NEXT: 0x1f ; add sp, #496
52 UNWIND2-NEXT: 0xd600 ; ldp x19, lr, [sp, #0]
53 UNWIND2-NEXT: 0x01 ; add sp, #16
54 UNWIND2-NEXT: 0xe4 ; end
57 UNWIND2-NEXT: EpilogueScope {
58 UNWIND2-NEXT: StartOffset: 14
59 UNWIND2-NEXT: EpilogueStartIndex: 0
60 UNWIND2-NEXT: Opcodes [
61 UNWIND2-NEXT: 0x1f ; add sp, #496
62 UNWIND2-NEXT: 0xd600 ; ldp x19, lr, [sp, #0]
63 UNWIND2-NEXT: 0x01 ; add sp, #16
64 UNWIND2-NEXT: 0xe4 ; end