]> git.proxmox.com Git - mirror_qemu.git/blob - tests/tcg/s390x/hello-s390x-asm.S
tests/tcg/s390x: Fix test-svc with clang
[mirror_qemu.git] / tests / tcg / s390x / hello-s390x-asm.S
1 /*
2 * Hello, World! in assembly.
3 */
4
5 .globl _start
6 _start:
7
8 /* puts("Hello, World!"); */
9 lghi %r2,1
10 larl %r3,foo
11 lgrl %r4,foo_len
12 svc 4
13
14 /* exit(0); */
15 xgr %r2,%r2
16 svc 1
17
18 .align 2
19 foo: .asciz "Hello, World!\n"
20 foo_end:
21 .align 8
22 foo_len: .quad foo_end-foo