This website requires JavaScript.
Explore
Help
Register
Sign In
github-repos
/
tinycc
Watch
1
Star
0
Fork
0
You've already forked tinycc
mirror of
https://github.com/mirror/tinycc.git
synced
2024-12-28 04:00:06 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
ca061f3a96
tinycc
/
tests
/
tests2
/
124_atomic_counter.expect
4 lines
24 B
Plaintext
Raw
Normal View
History
Unescape
Escape
stdatomic: simple counter test
2021-04-06 01:48:50 +08:00
SUCCESS
SUCCESS
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-17 00:51:56 +08:00
SUCCESS
Reference in New Issue
Copy Permalink