diff options
| author | Michael Matz <matz@suse.de> | 2016-06-29 15:57:32 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2016-12-15 17:47:07 +0100 |
| commit | 8e4da42384164d6eb862665d907b3b1138da2f94 (patch) | |
| tree | fe7ac034c9839d95f9c2580f6e6d2b54b4743cdd /tests | |
| parent | c82e52d55bd31eea943c616ad780f27e5ab9dc7a (diff) | |
| download | tinycc-8e4da42384164d6eb862665d907b3b1138da2f94.tar.gz tinycc-8e4da42384164d6eb862665d907b3b1138da2f94.tar.bz2 | |
Accept more asm expressions
In particular subtracting a defined symbol from current section
makes the value PC relative, and .org accepts symbolic expressions
as well, if the symbol is from the current section.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/asmtest.S | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/asmtest.S b/tests/asmtest.S index 2518510..f4eb248 100644 --- a/tests/asmtest.S +++ b/tests/asmtest.S @@ -727,6 +727,19 @@ nop .popsection .popsection +1: ud2 +.pushsection __bug_table,"a" +.align 8 +2: .long 1b - 2b + .long 0x600000 - 2b + .long 1b + 42 + .long 43 + 1b + .long 2b + 144 + .long 145 + 2b + .word 164, 0 + .org 2b+32 +.popsection + movd %esi, %mm1 movd %edi, %xmm2 movd (%ebx), %mm3 |
