be4a4cb429
Add a small test to prevent regressions. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Acked-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20230510230213.330134-3-iii@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
21 lines
224 B
ArmAsm
21 lines
224 B
ArmAsm
/*
|
|
* Hello, World! in assembly.
|
|
*/
|
|
|
|
.globl _start
|
|
_start:
|
|
|
|
/* puts("Hello, World!"); */
|
|
lghi %r2,1
|
|
larl %r3,foo
|
|
lghi %r4,foo_end-foo
|
|
svc 4
|
|
|
|
/* exit(0); */
|
|
xgr %r2,%r2
|
|
svc 1
|
|
|
|
.align 2
|
|
foo: .asciz "Hello, World!\n"
|
|
foo_end:
|