tinycc/tests
grischka 4a3741bf02 x86_64-asm: =m operand fixes
The problem was with tcctest.c:

    unsigned set;
    __asm__("btsl %1,%0" : "=m"(set) : "Ir"(20) : "cc");

when with tcc compiled with the HAVE_SELINUX option, run with
tcc -run, it would use large addresses far beyond the 32bits
range when tcc did not use the pc-relative mode for accessing
'set' in global data memory.  In fact the assembler did not
know about %rip at all.

Changes:
- memory operands use (%rax) not (%eax)
- conversion from VT_LLOCAL: use type VT_PTR
- support 'k' modifier
- support %rip register
- support X(%rip) pc-relative addresses

The test in tcctest.c is from Michael Matz.
2016-11-20 14:50:56 +01:00
..
pp OpenBSD does not support -v option in rm command. 2016-10-15 14:59:52 +02:00
tests2 tccgen: 32bits: fix PTR +/- long long 2016-10-13 19:21:43 +02:00
Makefile tccgen: fix long long -> char/short cast 2016-10-02 01:39:14 +02:00
abitest.c Revert "fix-mixed-struct (patch by Pip Cet)" 2015-07-29 16:57:41 -04:00
asmtest.S tccgen: fix long long -> char/short cast 2016-10-02 01:39:14 +02:00
boundtest.c a bounds checking code for the ARCH=x86_64 2015-04-10 15:17:22 +03:00
gcctestsuite.sh Fix bashims in configure and gcctestsuite.sh. 2010-05-26 14:08:29 +02:00
libtcc_test.c tccpp: fix issues, add tests 2015-05-09 14:29:39 +02:00
tcctest.c x86_64-asm: =m operand fixes 2016-11-20 14:50:56 +01:00
tcctest.py Added cross compilation to CMake build system. 2013-04-25 01:08:18 +01:00
testfp.c Remove misc. files 2016-10-01 20:27:41 +02:00
vla_test.c Improved variable length array support. 2013-04-27 22:58:52 +01:00