1 # RUN: llc -o - %s -mtriple=aarch64-windows -start-after=prologepilog \
2 # RUN: -filetype=obj | llvm-readobj --unwind | FileCheck %s
5 # CHECK: ExceptionData {
6 # CHECK-NEXT: FunctionLength: 72
7 # CHECK-NEXT: Version: 0
8 # CHECK-NEXT: ExceptionData: No
9 # CHECK-NEXT: EpiloguePacked: No
10 # CHECK-NEXT: EpilogueScopes: 1
11 # CHECK-NEXT: ByteCodeLength: 16
12 # CHECK-NEXT: Prologue [
13 # CHECK-NEXT: 0xe204 ; add fp, sp, #32
14 # CHECK-NEXT: 0x44 ; stp x29, x30, [sp, #32]
15 # CHECK-NEXT: 0xc802 ; stp x19, x20, [sp, #16]
16 # CHECK-NEXT: 0xcc85 ; stp x21, x22, [sp, #-48]!
17 # CHECK-NEXT: 0xe4 ; end
19 # CHECK-NEXT: EpilogueScopes [
20 # CHECK-NEXT: EpilogueScope {
21 # CHECK-NEXT: StartOffset: 13
22 # CHECK-NEXT: EpilogueStartIndex: 8
23 # CHECK-NEXT: Opcodes [
24 # CHECK-NEXT: 0xe204 ; add fp, sp, #32
25 # CHECK-NEXT: 0x44 ; ldp x29, x30, [sp, #32]
26 # CHECK-NEXT: 0xc802 ; ldp x19, x20, [sp, #16]
27 # CHECK-NEXT: 0xcc85 ; ldp x21, x22, [sp], #48
28 # CHECK-NEXT: 0xe4 ; end
37 name: '?func@@YAHHHHH@Z'
39 exposesReturnsTwice: false
41 regBankSelected: false
44 tracksRegLiveness: true
48 - { reg: '$w0', virtual-reg: '' }
49 - { reg: '$w1', virtual-reg: '' }
50 - { reg: '$w2', virtual-reg: '' }
51 - { reg: '$w3', virtual-reg: '' }
53 isFrameAddressTaken: false
54 isReturnAddressTaken: false
64 hasOpaqueSPAdjustment: false
66 hasMustTailInVarArgFunc: false
72 - { id: 0, name: '', type: variable-sized, offset: -48,
73 alignment: 1, stack-id: default, callee-saved-register: '', callee-saved-restored: true,
74 local-offset: 0, debug-info-variable: '', debug-info-expression: '',
75 debug-info-location: '' }
76 - { id: 1, name: '', type: spill-slot, offset: -8, size: 8, alignment: 8,
77 stack-id: default, callee-saved-register: '$fp', callee-saved-restored: true,
78 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
79 - { id: 2, name: '', type: spill-slot, offset: -16, size: 8, alignment: 8,
80 stack-id: default, callee-saved-register: '$lr', callee-saved-restored: true,
81 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
82 - { id: 3, name: '', type: spill-slot, offset: -24, size: 8, alignment: 8,
83 stack-id: default, callee-saved-register: '$x19', callee-saved-restored: true,
84 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
85 - { id: 4, name: '', type: spill-slot, offset: -32, size: 8, alignment: 8,
86 stack-id: default, callee-saved-register: '$x20', callee-saved-restored: true,
87 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
88 - { id: 5, name: '', type: spill-slot, offset: -40, size: 8, alignment: 8,
89 stack-id: default, callee-saved-register: '$x21', callee-saved-restored: true,
90 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
91 - { id: 6, name: '', type: spill-slot, offset: -48, size: 8, alignment: 8,
92 stack-id: default, callee-saved-register: '$x22', callee-saved-restored: true,
93 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
97 liveins: $w0, $w1, $w2, $w3, $x21, $x22, $x19, $x20, $lr
99 early-clobber $sp = frame-setup STPXpre killed $x21, killed $x22, $sp, -6 :: (store 8 into %stack.5), (store 8 into %stack.6)
100 frame-setup SEH_SaveRegP_X 21, 22, -48
101 frame-setup STPXi killed $x19, killed $x20, $sp, 2 :: (store 8 into %stack.3), (store 8 into %stack.4)
102 frame-setup SEH_SaveRegP 19, 20, 16
103 frame-setup STPXi killed $fp, killed $lr, $sp, 4 :: (store 8 into %stack.1), (store 8 into %stack.2)
104 frame-setup SEH_SaveFPLR 32
105 $fp = frame-setup ADDXri $sp, 32, 0
106 frame-setup SEH_AddFP 32
107 frame-setup SEH_PrologEnd
108 renamable $w19 = COPY $w3
109 renamable $w0 = KILL $w0, implicit-def $x0
110 renamable $w20 = COPY $w2
111 renamable $w21 = COPY $w1
112 renamable $x8 = SBFMXri killed renamable $x0, 0, 31
113 renamable $x9 = ADDXri killed renamable $x8, 15, 0
114 renamable $x15 = UBFMXri killed renamable $x9, 4, 63
115 renamable $x8 = COPY $sp
116 renamable $x22 = SUBXrs killed renamable $x8, killed renamable $x15, 4
117 $sp = COPY renamable $x22
118 $x0 = COPY renamable $x22
119 renamable $w8 = LDRWroW killed renamable $x22, killed renamable $w21, 1, 1
120 renamable $w9 = ADDWrr killed renamable $w19, killed renamable $w20
121 renamable $w0 = ADDWrr killed renamable $w9, killed renamable $w8
122 frame-destroy SEH_EpilogStart
123 $sp = frame-destroy SUBXri $fp, 32, 0
124 frame-destroy SEH_AddFP 32
125 $fp, $lr = frame-destroy LDPXi $sp, 4 :: (load 8 from %stack.1), (load 8 from %stack.2)
126 frame-destroy SEH_SaveFPLR 32
127 $x19, $x20 = frame-destroy LDPXi $sp, 2 :: (load 8 from %stack.3), (load 8 from %stack.4)
128 frame-destroy SEH_SaveRegP 19, 20, 16
129 early-clobber $sp, $x21, $x22 = frame-destroy LDPXpost $sp, 6 :: (load 8 from %stack.5), (load 8 from %stack.6)
130 frame-destroy SEH_SaveRegP_X 21, 22, -48
131 frame-destroy SEH_EpilogEnd
132 RET_ReallyLR implicit $w0