zephyr/tests/subsys
Eric Ackermann 7293f59a05 tests: llext: Test RISC-V non-paired relocation
Tests an edge case in the RISC-V PSABI: In the medany and the medlow code
models, the compiler emits auipc/lui (U-type) and ld/sw (I-type/S-type)
instruction pairs for accessing a non-local symbol.
The U-type instruction sets the upper 20 bits, the I/S-type the lower 12.
The U-type and I-type/S-type instruction pairs are often adjacent in code.
This is also what the current llext architecture-specific relocations
expect.
However, this need not be the case - compilers can re-use the upper 20
bits set by the U-type instruction with multiple I/S-type instructions,
which is a useful optimization for multiple loads/stores of or within
the same symbol.
This commit adds a unit test for this behavior, which currently fails
for RISC-V.

Signed-off-by: Eric Ackermann <eric.ackermann@cispa.de>
2025-03-07 19:44:54 +01:00
..
bindesc boards native_posix: Remove twister support 2025-03-07 19:16:14 +01:00
canbus/isotp
debug python: Format trivial files where only newlines were missing 2024-11-21 20:10:51 +01:00
dfu tests: subsys: dfu: img_util: Increase stack size 2024-11-06 09:57:41 -08:00
display/cfb/basic tests: display: cfb: fix filtering 2024-11-18 07:24:12 -05:00
dsp dsp: utils: Implemented float/fixed type conversions 2024-12-17 20:55:27 +01:00
edac drivers: edac: Place API into iterable section 2024-12-03 10:16:29 +01:00
emul
fs fs: zms: fix Copyright notice 2025-03-04 12:17:02 +00:00
input
ipc tests: tests should not enable mmu directly 2025-02-19 04:59:19 +01:00
jwt mbedtls: use CSPRNG whenever possible as PSA random source 2024-11-20 15:59:40 -05:00
llext tests: llext: Test RISC-V non-paired relocation 2025-03-07 19:44:54 +01:00
logging tests: subsys: logging: Test with CONFIG_LOG disabled 2025-02-11 15:41:21 +01:00
lorawan tests/subsys/lorawan/frag_decoder: Change random seed 2025-01-20 20:55:48 +01:00
mem_mgmt
mgmt drivers: serial: Place API into iterable section 2024-12-02 22:08:56 +00:00
modbus boards: opta: RS485 support 2024-11-20 15:59:53 -05:00
modem modem: cmux: added validation of cmux frame length 2024-11-07 08:31:48 -06:00
nrfs tests: susbys: Implement performance test for the NRFS 2025-02-10 11:30:36 +01:00
openthread boards native_posix: Remove twister support 2025-03-07 19:16:14 +01:00
pm tests: pm: Test the SoC State Change Power Domain driver 2025-02-13 16:40:10 +01:00
portability tests: portability: cmsis: Add tests for CMSIS-RTOSv2 static cb 2025-02-14 03:13:35 +01:00
random/rng
rtio rtio: Correctly handle completion count wraps 2025-02-12 12:23:06 +01:00
sd samples, tests: remove usage of space-separated lists 2024-12-04 14:14:53 -05:00
secure_storage/psa tests: secure_storage: add dependencies 2025-02-27 09:07:56 +00:00
sensing
settings tests/subsys/settings/functional/fcb: Remove native_posix overlay 2025-03-07 19:16:14 +01:00
settings_commit_prio settings: Add test for settings commit priority 2024-10-24 22:04:07 +01:00
shell tests: shell_backend_uart: do not filter 2025-02-20 21:06:00 +01:00
sip_svc samples, tests: remove usage of space-separated lists 2024-12-04 14:14:53 -05:00
storage tests: flash_map: Increase the maximum number of supported sectors 2025-02-08 00:32:09 +01:00
testsuite/fff_fake_contexts tests: Support targeting unit_testing with and without qualifier 2024-10-25 18:51:10 +01:00
tracing/tracing_api tests/subsys/tracing: Async tracing API test fix 2025-01-23 00:13:46 +01:00
usb usb: host: allow dynamic allocation of USB devices 2025-02-10 09:02:45 +01:00
zbus zbus: assert when inside an ISR and time out is not zero 2025-01-21 19:30:20 +01:00