From c4edfb4e0804aa005ee9e199420a17828076120a Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sun, 7 Aug 2016 04:27:32 +0200 Subject: 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. --- tests/asmtest.S | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests') 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 -- cgit v1.3.1