1 # RUN: llvm-mc -filetype=asm < %s -triple i686-windows-msvc | FileCheck %s --check-prefix=ASM
2 # RUN: llvm-mc -filetype=obj < %s -triple i686-windows-msvc | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ
21 # ASM: .cv_fpo_proc _foo 4
23 # ASM: .cv_fpo_pushreg %ebp
24 # ASM: movl %ebp, %esp
25 # ASM: .cv_fpo_setframe %ebp
27 # ASM: .cv_fpo_pushreg %ebx
29 # ASM: .cv_fpo_pushreg %edi
31 # ASM: .cv_fpo_pushreg %esi
33 # ASM: .cv_fpo_stackalloc 20
34 # ASM: .cv_fpo_endprologue
40 # Use that stack memory
48 # FIXME: Get FPO data for this once we get it for DWARF.
57 # ASM: .cv_fpo_endproc
59 .section .debug$S,"dr"
61 .long 4 # Debug section magic
68 # OBJ-NEXT: SubSectionType: FrameData (0xF5)
69 # OBJ-NEXT: SubSectionSize:
70 # OBJ-NEXT: LinkageName: _foo
71 # OBJ-NEXT: FrameData {
72 # OBJ-NEXT: RvaStart: 0x0
73 # OBJ-NEXT: CodeSize: 0x23
74 # OBJ-NEXT: LocalSize: 0x0
75 # OBJ-NEXT: ParamsSize: 0x4
76 # OBJ-NEXT: MaxStackSize: 0x0
77 # OBJ-NEXT: PrologSize: 0x9
78 # OBJ-NEXT: SavedRegsSize: 0x0
79 # OBJ-NEXT: Flags [ (0x4)
80 # OBJ-NEXT: IsFunctionStart (0x4)
82 # OBJ-NEXT: FrameFunc [
83 # OBJ-NEXT: $T0 .raSearch =
84 # OBJ-NEXT: $eip $T0 ^ =
85 # OBJ-NEXT: $esp $T0 4 + =
88 # OBJ-NEXT: FrameData {
89 # OBJ-NEXT: RvaStart: 0x1
90 # OBJ-NEXT: CodeSize: 0x22
91 # OBJ-NEXT: LocalSize: 0x0
92 # OBJ-NEXT: ParamsSize: 0x4
93 # OBJ-NEXT: MaxStackSize: 0x0
94 # OBJ-NEXT: PrologSize: 0x8
95 # OBJ-NEXT: SavedRegsSize: 0x4
96 # OBJ-NEXT: Flags [ (0x0)
98 # OBJ-NEXT: FrameFunc [
99 # OBJ-NEXT: $T0 .raSearch =
100 # OBJ-NEXT: $eip $T0 ^ =
101 # OBJ-NEXT: $esp $T0 4 + =
102 # OBJ-NEXT: $ebp $T0 4 - ^ =
105 # OBJ-NEXT: FrameData {
106 # OBJ-NEXT: RvaStart: 0x3
107 # OBJ-NEXT: CodeSize: 0x20
108 # OBJ-NEXT: LocalSize: 0x0
109 # OBJ-NEXT: ParamsSize: 0x4
110 # OBJ-NEXT: MaxStackSize: 0x0
111 # OBJ-NEXT: PrologSize: 0x6
112 # OBJ-NEXT: SavedRegsSize: 0x4
113 # OBJ-NEXT: Flags [ (0x0)
115 # OBJ-NEXT: FrameFunc [
116 # OBJ-NEXT: $T0 $ebp 4 + =
117 # OBJ-NEXT: $eip $T0 ^ =
118 # OBJ-NEXT: $esp $T0 4 + =
119 # OBJ-NEXT: $ebp $T0 4 - ^ =
122 # OBJ-NEXT: FrameData {
123 # OBJ-NEXT: RvaStart: 0x4
124 # OBJ-NEXT: CodeSize: 0x1F
125 # OBJ-NEXT: LocalSize: 0x0
126 # OBJ-NEXT: ParamsSize: 0x4
127 # OBJ-NEXT: MaxStackSize: 0x0
128 # OBJ-NEXT: PrologSize: 0x5
129 # OBJ-NEXT: SavedRegsSize: 0x8
130 # OBJ-NEXT: Flags [ (0x0)
132 # OBJ-NEXT: FrameFunc [
133 # OBJ-NEXT: $T0 $ebp 4 + =
134 # OBJ-NEXT: $eip $T0 ^ =
135 # OBJ-NEXT: $esp $T0 4 + =
136 # OBJ-NEXT: $ebp $T0 4 - ^ =
137 # OBJ-NEXT: $ebx $T0 8 - ^ =
140 # OBJ-NEXT: FrameData {
141 # OBJ-NEXT: RvaStart: 0x5
142 # OBJ-NEXT: CodeSize: 0x1E
143 # OBJ-NEXT: LocalSize: 0x0
144 # OBJ-NEXT: ParamsSize: 0x4
145 # OBJ-NEXT: MaxStackSize: 0x0
146 # OBJ-NEXT: PrologSize: 0x4
147 # OBJ-NEXT: SavedRegsSize: 0xC
148 # OBJ-NEXT: Flags [ (0x0)
150 # OBJ-NEXT: FrameFunc [
151 # OBJ-NEXT: $T0 $ebp 4 + =
152 # OBJ-NEXT: $eip $T0 ^ =
153 # OBJ-NEXT: $esp $T0 4 + =
154 # OBJ-NEXT: $ebp $T0 4 - ^ =
155 # OBJ-NEXT: $ebx $T0 8 - ^ =
156 # OBJ-NEXT: $edi $T0 12 - ^ =
159 # OBJ-NEXT: FrameData {
160 # OBJ-NEXT: RvaStart: 0x6
161 # OBJ-NEXT: CodeSize: 0x1D
162 # OBJ-NEXT: LocalSize: 0x0
163 # OBJ-NEXT: ParamsSize: 0x4
164 # OBJ-NEXT: MaxStackSize: 0x0
165 # OBJ-NEXT: PrologSize: 0x3
166 # OBJ-NEXT: SavedRegsSize: 0x10
167 # OBJ-NEXT: Flags [ (0x0)
169 # OBJ-NEXT: FrameFunc [
170 # OBJ-NEXT: $T0 $ebp 4 + =
171 # OBJ-NEXT: $eip $T0 ^ =
172 # OBJ-NEXT: $esp $T0 4 + =
173 # OBJ-NEXT: $ebp $T0 4 - ^ =
174 # OBJ-NEXT: $ebx $T0 8 - ^ =
175 # OBJ-NEXT: $edi $T0 12 - ^ =
176 # OBJ-NEXT: $esi $T0 16 - ^ =