aboutsummaryrefslogtreecommitdiff
path: root/test/execute/0002-setsym.s
diff options
context:
space:
mode:
authorandrewchambers <[email protected]>2021-10-24 00:53:49 +1300
committerGitHub <[email protected]>2021-10-24 00:53:49 +1300
commit0d53c9d7b78aec53922bd0d57dbe48db27570506 (patch)
tree8be3101481fdfd82dc18a1ae1484ea5f6f29f1d0 /test/execute/0002-setsym.s
parentb0742648c80cbc11465b773116a74dead9e1242e (diff)
parent6b9b596fcd588d22e15f259b572ae8845fbddacb (diff)
Merge pull request #9 from andrewchambers/set
Implement the .set directive.
Diffstat (limited to 'test/execute/0002-setsym.s')
-rw-r--r--test/execute/0002-setsym.s17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/execute/0002-setsym.s b/test/execute/0002-setsym.s
new file mode 100644
index 0000000..6ce09bc
--- /dev/null
+++ b/test/execute/0002-setsym.s
@@ -0,0 +1,17 @@
+.text
+.globl main
+main:
+ jmp z
+ # x
+ nop
+ # y
+ nop
+ # z
+ xorl %eax, %eax
+ ret
+
+.set z, y+1
+.set x, main+2
+.set y, x+1
+
+.section .note.GNU-stack,"",@progbits