History

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.

Michael Matz committed 10 years ago

Commit c4edfb41 parent 34fc6433 files · +61 −16Browse files

Showing the changes to tests (1 of 3 files). Show all

Unified · Split

tests/asmtest.S+11−0
@@ -824,6 +824,17 @@ nop · 823 unmodified lines
824.skip (-((4b-3b) > 0) * 2) , 0x90824.skip (-((4b-3b) > 0) * 2) , 0x90
825.popsection825.popsection
826 826
827.globl overrideme
828.weak overrideme
829 nop
830.globl notimplemented
831notimplemented:
832 ret
833.set overrideme, notimplemented
834overrideme = notimplemented
835overrideme:
836 ret
837
827 movd %esi, %mm1838 movd %esi, %mm1
828 movd %edi, %xmm2839 movd %edi, %xmm2
829 movd (%ebx), %mm3840 movd (%ebx), %mm3

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t