[PATCH v2 0/2] add riscv32 double-word shifts and library test
Dmitry Antipov
dmantipov at yandex.ru
Wed Apr 8 20:38:22 PDT 2026
This series should immediately follow v8 of lib and lib/cmdline enhancements,
see https://patchew.org/linux/20260212164413.889625-1-dmantipov@yandex.ru.
Started from riscv32 build quirk, now it aims to provide platform-specific
double-word shifts and corresponding KUnit test (tested on ARM as well).
Dmitry Antipov (2):
riscv: add platform-specific double word shifts for riscv32
lib: kunit: add tests for __ashldi3(), __ashrdi3(), and __lshrdi3()
arch/riscv/Kconfig | 3 -
arch/riscv/kernel/image-vars.h | 7 ++
arch/riscv/lib/Makefile | 1 +
arch/riscv/lib/ashldi3.S | 36 +++++++
arch/riscv/lib/ashrdi3.S | 37 +++++++
arch/riscv/lib/lshrdi3.S | 36 +++++++
lib/Kconfig.debug | 10 ++
lib/tests/Makefile | 1 +
lib/tests/shdi3_kunit.c | 175 +++++++++++++++++++++++++++++++++
9 files changed, 303 insertions(+), 3 deletions(-)
create mode 100644 arch/riscv/lib/ashldi3.S
create mode 100644 arch/riscv/lib/ashrdi3.S
create mode 100644 arch/riscv/lib/lshrdi3.S
create mode 100644 lib/tests/shdi3_kunit.c
--
2.53.0
More information about the linux-riscv
mailing list