[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / X86 / pr38826.s
blob76289a147ec58f9fc314707e6dd621ff542ec458
1 // RUN: llvm-mc %s -triple i386-unknown-unknown
3 // Make sure %eip is allowed as a register in cfi directives in 32-bit mode
5 .text
6 .align 4
7 .globl foo
9 foo:
10 .cfi_startproc
12 movl (%edx), %ecx
13 movl 4(%edx), %ebx
14 movl 8(%edx), %esi
15 movl 12(%edx), %edi
16 movl 16(%edx), %ebp
17 .cfi_def_cfa %edx, 0
18 .cfi_offset %eip, 24
19 .cfi_register %esp, %ecx
20 movl %ecx, %esp
22 jmp *24(%edx)
24 .cfi_endproc