aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-11 12:36:47 +1300
committerAndrew Chambers <[email protected]>2021-10-11 12:36:47 +1300
commit0958ee6c9006195ba69f9a61e782b688861891e3 (patch)
tree23f13c8a00624e99481812861356187e08ea828e /test
parent01b5a69f2d7e7ec041064e88d0789ad6d6bc92eb (diff)
Make naming more consistent.
Diffstat (limited to 'test')
-rw-r--r--test/execute/0001-hello.s17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/execute/0001-hello.s b/test/execute/0001-hello.s
new file mode 100644
index 0000000..d4f5b11
--- /dev/null
+++ b/test/execute/0001-hello.s
@@ -0,0 +1,17 @@
+.data
+.balign 1
+.Lstring.2:
+ .ascii "hello\000"
+
+.text
+.globl main
+main:
+ pushq %rbp
+ movq %rsp, %rbp
+ leaq .Lstring.2(%rip), %rdi
+ callq puts
+ xorl %eax, %eax
+ leave
+ ret
+
+.section .note.GNU-stack,"",@progbits