xref: /llvm-project/llvm/test/ExecutionEngine/JITLink/i386/ELF_i386_minimal.s (revision 29fe204b4e87dcd78bebd40df512e8017dffea8f)
1# RUN: llvm-mc -triple=i386-unknown-linux-gnu -position-independent -filetype=obj -o %t.o %s
2# RUN: llvm-jitlink -noexec %t.o
3
4	.text
5	.globl	main
6	.p2align	4
7	.type	main,@function
8main:
9    pushl   %ebp
10    movl    %esp, %ebp
11    pushl   %eax
12    movl    $0, -4(%ebp)
13    movl    $42, %eax
14    addl    $4, %esp
15    popl    %ebp
16    retl
17
18	.size	main, .-main