aboutsummaryrefslogtreecommitdiff
path: root/tests/asmtest.S
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-08-07 04:27:32 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:10 +0100
commitc4edfb4e0804aa005ee9e199420a17828076120a (patch)
tree4fd3b5db597dce06a0ce603ccfaa73eea6f7834a /tests/asmtest.S
parent34fc6435ee17e6d2bbfffc367532cf340cf730a2 (diff)
downloadtinycc-c4edfb4e0804aa005ee9e199420a17828076120a.tar.gz
tinycc-c4edfb4e0804aa005ee9e199420a17828076120a.tar.bz2
tccasm: Implement .set sym, expr
That, as well as "sym = expr", if expr contains symbols. Slightly tricky because a definition from .set is overridable, whereas proper definitions aren't. This doesn't yet allow using this for override tricks from C and global asm blocks because the symbol tables from C and asm are separate.
Diffstat (limited to 'tests/asmtest.S')
-rw-r--r--tests/asmtest.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/asmtest.S b/tests/asmtest.S
index 10ec2ee..dbc6c15 100644
--- a/tests/asmtest.S
+++ b/tests/asmtest.S
@@ -824,6 +824,17 @@ nop
.skip (-((4b-3b) > 0) * 2) , 0x90
.popsection
+.globl overrideme
+.weak overrideme
+ nop
+.globl notimplemented
+notimplemented:
+ ret
+.set overrideme, notimplemented
+overrideme = notimplemented
+overrideme:
+ ret
+
movd %esi, %mm1
movd %edi, %xmm2
movd (%ebx), %mm3