gcc/libgcc/config/pru
Dimitar Dimitrov 625af54662
pru: libgcc: Add software implementation for multiplication
For cores without a hardware multiplier, set respective optabs
with library functions which use software implementation of
multiplication.

The implementation was copied from the RL78 backend.

gcc/ChangeLog:

	* config/pru/pru.cc (pru_init_libfuncs): Set softmpy libgcc
	functions for optab multiplication entries if TARGET_OPT_MUL
	option is not set.

libgcc/ChangeLog:

	* config/pru/libgcc-eabi.ver: Add __pruabi_softmpyi and
	__pruabi_softmpyll symbols.
	* config/pru/t-pru: Add softmpy source files.
	* config/pru/pru-softmpy.h: New file.
	* config/pru/softmpyi.c: New file.
	* config/pru/softmpyll.c: New file.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
2025-08-21 21:43:05 +03:00
..
asri.c Update copyright years. 2025-01-02 11:59:57 +01:00
eqd.c Update copyright years. 2025-01-02 11:59:57 +01:00
eqf.c Update copyright years. 2025-01-02 11:59:57 +01:00
ged.c Update copyright years. 2025-01-02 11:59:57 +01:00
gef.c Update copyright years. 2025-01-02 11:59:57 +01:00
gtd.c Update copyright years. 2025-01-02 11:59:57 +01:00
gtf.c Update copyright years. 2025-01-02 11:59:57 +01:00
led.c Update copyright years. 2025-01-02 11:59:57 +01:00
lef.c Update copyright years. 2025-01-02 11:59:57 +01:00
lib2bitcountHI.c Update copyright years. 2025-01-02 11:59:57 +01:00
lib2divHI.c Update copyright years. 2025-01-02 11:59:57 +01:00
lib2divQI.c Update copyright years. 2025-01-02 11:59:57 +01:00
lib2divSI.c Update copyright years. 2025-01-02 11:59:57 +01:00
libgcc-eabi.ver pru: libgcc: Add software implementation for multiplication 2025-08-21 21:43:05 +03:00
ltd.c Update copyright years. 2025-01-02 11:59:57 +01:00
ltf.c Update copyright years. 2025-01-02 11:59:57 +01:00
mpyll.S Update copyright years. 2025-01-02 11:59:57 +01:00
pru-abi.h Update copyright years. 2025-01-02 11:59:57 +01:00
pru-asm.h Update copyright years. 2025-01-02 11:59:57 +01:00
pru-divmod.h Update copyright years. 2025-01-02 11:59:57 +01:00
pru-softmpy.h pru: libgcc: Add software implementation for multiplication 2025-08-21 21:43:05 +03:00
sfp-machine.h Update copyright years. 2025-01-02 11:59:57 +01:00
softmpyi.c pru: libgcc: Add software implementation for multiplication 2025-08-21 21:43:05 +03:00
softmpyll.c pru: libgcc: Add software implementation for multiplication 2025-08-21 21:43:05 +03:00
t-pru pru: libgcc: Add software implementation for multiplication 2025-08-21 21:43:05 +03:00