projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add instruction encodings / disassembly support for l6r instructions.
[oota-llvm.git]
/
test
/
MC
/
AsmParser
/
hello.s
1
// RUN: llvm-mc -triple i386-apple-darwin9 %s -o -
2
// RUN: llvm-mc -triple i386-apple-darwin9 %s -o - -output-asm-variant=1
3
4
.text
5
.align 4,0x90
6
.globl _main
7
_main:
8
pushl %ebp
9
movl %esp, %ebp
10
subl $8, %esp
11
call "L1$pb"
12
"L1$pb":
13
popl %eax
14
movl $0, -4(%ebp)
15
movl %esp, %ecx
16
leal L_.str-"L1$pb"(%eax), %eax
17
movl %eax, (%ecx)
18
call _printf
19
movl $0, -4(%ebp)
20
movl -4(%ebp), %eax
21
addl $8, %esp
22
popl %ebp
23
//ret
24
.subsections_via_symbols
25
.cstring
26
L_.str:
27
.asciz "hello world!\n"
28