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: Yes
10 # CHECK-NEXT: EpilogueOffset: 0
11 # CHECK-NEXT: ByteCodeLength: 8
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
24 name: '?func@@YAHHHHH@Z'
26 exposesReturnsTwice: false
28 regBankSelected: false
31 tracksRegLiveness: true
35 - { reg: '$w0', virtual-reg: '' }
36 - { reg: '$w1', virtual-reg: '' }
37 - { reg: '$w2', virtual-reg: '' }
38 - { reg: '$w3', virtual-reg: '' }
40 isFrameAddressTaken: false
41 isReturnAddressTaken: false
51 hasOpaqueSPAdjustment: false
53 hasMustTailInVarArgFunc: false
59 - { id: 0, name: '', type: variable-sized, offset: -48,
60 alignment: 1, stack-id: default, callee-saved-register: '', callee-saved-restored: true,
61 local-offset: 0, debug-info-variable: '', debug-info-expression: '',
62 debug-info-location: '' }
63 - { id: 1, name: '', type: spill-slot, offset: -8, size: 8, alignment: 8,
64 stack-id: default, callee-saved-register: '$fp', callee-saved-restored: true,
65 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
66 - { id: 2, name: '', type: spill-slot, offset: -16, size: 8, alignment: 8,
67 stack-id: default, callee-saved-register: '$lr', callee-saved-restored: true,
68 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
69 - { id: 3, name: '', type: spill-slot, offset: -24, size: 8, alignment: 8,
70 stack-id: default, callee-saved-register: '$x19', callee-saved-restored: true,
71 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
72 - { id: 4, name: '', type: spill-slot, offset: -32, size: 8, alignment: 8,
73 stack-id: default, callee-saved-register: '$x20', callee-saved-restored: true,
74 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
75 - { id: 5, name: '', type: spill-slot, offset: -40, size: 8, alignment: 8,
76 stack-id: default, callee-saved-register: '$x21', callee-saved-restored: true,
77 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
78 - { id: 6, name: '', type: spill-slot, offset: -48, size: 8, alignment: 8,
79 stack-id: default, callee-saved-register: '$x22', callee-saved-restored: true,
80 debug-info-variable: '', debug-info-expression: '', debug-info-location: '' }
84 liveins: $w0, $w1, $w2, $w3, $x21, $x22, $x19, $x20, $lr
86 early-clobber $sp = frame-setup STPXpre killed $x21, killed $x22, $sp, -6 :: (store (s64) into %stack.5), (store (s64) into %stack.6)
87 frame-setup SEH_SaveRegP_X 21, 22, -48
88 frame-setup STPXi killed $x19, killed $x20, $sp, 2 :: (store (s64) into %stack.3), (store (s64) into %stack.4)
89 frame-setup SEH_SaveRegP 19, 20, 16
90 frame-setup STPXi killed $fp, killed $lr, $sp, 4 :: (store (s64) into %stack.1), (store (s64) into %stack.2)
91 frame-setup SEH_SaveFPLR 32
92 $fp = frame-setup ADDXri $sp, 32, 0
93 frame-setup SEH_AddFP 32
94 frame-setup SEH_PrologEnd
95 renamable $w19 = COPY $w3
96 renamable $w0 = KILL $w0, implicit-def $x0
97 renamable $w20 = COPY $w2
98 renamable $w21 = COPY $w1
99 renamable $x8 = SBFMXri killed renamable $x0, 0, 31
100 renamable $x9 = ADDXri killed renamable $x8, 15, 0
101 renamable $x15 = UBFMXri killed renamable $x9, 4, 63
102 renamable $x8 = COPY $sp
103 renamable $x22 = SUBXrs killed renamable $x8, killed renamable $x15, 4
104 $sp = COPY renamable $x22
105 $x0 = COPY renamable $x22
106 renamable $w8 = LDRWroW killed renamable $x22, killed renamable $w21, 1, 1
107 renamable $w9 = ADDWrr killed renamable $w19, killed renamable $w20
108 renamable $w0 = ADDWrr killed renamable $w9, killed renamable $w8
109 frame-destroy SEH_EpilogStart
110 $sp = frame-destroy SUBXri $fp, 32, 0
111 frame-destroy SEH_AddFP 32
112 $fp, $lr = frame-destroy LDPXi $sp, 4 :: (load (s64) from %stack.1), (load (s64) from %stack.2)
113 frame-destroy SEH_SaveFPLR 32
114 $x19, $x20 = frame-destroy LDPXi $sp, 2 :: (load (s64) from %stack.3), (load (s64) from %stack.4)
115 frame-destroy SEH_SaveRegP 19, 20, 16
116 early-clobber $sp, $x21, $x22 = frame-destroy LDPXpost $sp, 6 :: (load (s64) from %stack.5), (load (s64) from %stack.6)
117 frame-destroy SEH_SaveRegP_X 21, 22, -48
118 frame-destroy SEH_EpilogEnd
119 RET_ReallyLR implicit $w0