tinycc/tests
herman ten brugge 79a8229fb5 Add atomic functions for arm/arm64/riscv
Make code more compatible with gcc. Change
__atomic_store
__atomic_load
__atomic_exchange
__atomic_compare_exchange

Also add (include/stdatomic.h, lib/stdatomic.c):
atomic_thread_fence
atomic_signal_fence
atomic_is_lock_free

And gcc extensions (tcctok.h, tccgen.c, lib/stdatomic.c):
__atomic_fetch_nand
__atomic_and_fetch
__atomic_sub_fetch
__atomic_or_fetch
__atomic_xor_fetch
__atomic_and_fetch
__atomic_nand_fetch

Add new file lib/atomic.S with assembly code for __atomic_compare_exchange_n
for arm/arm64/riscv. Also update lib/Makefile.

Update testcode in 124_atomic_counter and 125_atomic_misc to test new functions.
Also update tests/tests2/Makefile to run tests on arm/arm64/riscv.
2022-10-16 18:51:56 +02:00
..
pp tccpp: Fix #ifdef in macro args 2022-08-16 15:59:41 +02:00
tests2 Add atomic functions for arm/arm64/riscv 2022-10-16 18:51:56 +02:00
42test.h tccpp: Allow computed include like 42.h 2016-12-15 17:47:10 +01:00
abitest.c Spelling fixes 2017-09-24 18:03:26 -07:00
arm-asm-testsuite.sh arm-asm: Add vcvt 2021-02-13 01:03:41 +01:00
asm-c-connect-1.c OpenBSD: testcases 2020-12-16 17:52:59 +01:00
asm-c-connect-2.c OpenBSD: testcases 2020-12-16 17:52:59 +01:00
asmtest.S x86asm: Add movnti 2022-08-16 15:59:41 +02:00
boundtest.c Serveral updates 2021-01-12 18:06:23 +01:00
bug.c Allow strings in __builtin_constant_p 2020-09-17 09:11:10 +02:00
gcctestsuite.sh gcctestsuite: Make the script usable on more systems, skip some tests 2022-10-12 00:59:02 +02:00
libtcc_test_mt.c WAIT/POST_SEM(): generalize interface (and more) 2021-08-01 20:33:31 +02:00
libtcc_test.c Add error_func and error_opaque getters to libtcc 2019-10-14 09:36:14 +02:00
Makefile x86asm: Add popcnt 2022-08-16 15:59:41 +02:00
tcctest.c tcctest.c: sizeof (long) != 8 2022-10-14 21:56:16 +02:00
tcctest.h tccpp: Implement __BASE_FILE__ macro 2016-12-15 17:47:08 +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