tinycc/tests
Meng Zhuo f8011ea9b7 riscv64-asm: implement CSR pseudo-instructions
Add handlers for csrr, csrw, csrwi, csrsi, csrci as pseudo-instructions:
  csrr rd, csr     -> csrrs rd, csr, x0
  csrw csr, rs     -> csrrw x0, csr, rs
  csrwi csr, uimm  -> csrrwi x0, csr, uimm
  csrsi csr, uimm  -> csrrsi x0, csr, uimm
  csrci csr, uimm  -> csrrci x0, csr, uimm

Tokens were already defined in riscv64-tok.h.  Tested on
Spacemit X100 using fcsr (0x003) which is accessible in user mode.
cycle/instret CSRs are privileged and not accessible from Linux
user mode on this hardware.
2026-05-06 18:33:15 +08:00
..
pp arm64-win32 support : configure & Makefiles 2026-05-04 12:49:25 +02:00
tests2 riscv64-asm: implement CSR pseudo-instructions 2026-05-06 18:33:15 +08:00
42test.h tccpp: Allow computed include like 42.h 2016-12-15 17:47:10 +01:00
abitest.c LIBTCCAPI tcc_relocate(s) : REMOVED 2nd argument 2024-02-09 13:38:27 +01: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 lzcnt/tzcnt support 2022-12-13 11:34:54 +01:00
boundtest.c Add bound check support for alloca on all targets 2025-11-29 07:54:28 +01:00
bug.c Allow const expr in builtin_frame_address/builtin_return_address 2023-01-16 08:37:47 +01:00
gcctestsuite.sh Update gcctestsuite 2025-08-03 10:35:58 +02:00
libtcc_test_mt.c arm64-win32 review: fix problems and pass tests 2026-05-04 12:51:10 +02:00
libtcc_test.c LIBTCCAPI tcc_relocate(s) : REMOVED 2nd argument 2024-02-09 13:38:27 +01:00
Makefile tests: generate test.ref with TCC instead of host CC 2026-05-06 14:43:30 +08:00
msvcrt_start.c arm64-win32 review: fix problems and pass tests 2026-05-04 12:51:10 +02:00
tcctest.c arm64-win32 review: fix problems and pass tests 2026-05-04 12:51:10 +02:00
tcctest.h tccpp: Implement __BASE_FILE__ macro 2016-12-15 17:47:08 +01:00
test-win32.bat arm64-win32 review: fix problems and pass tests 2026-05-04 12:51:10 +02: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