gcc/libgcc/config/pru
Dimitar Dimitrov 1ee457a5fe libgcc pru: Define TARGET_HAS_NO_HW_DIVIDE
This patch aligns the configuration to the actual PRU capabilities. It
also reduces the size of the affected libgcc functions.

For a real-world project using integer arithmetics the savings
are significant:

  Before:
     text    data     bss     dec     hex filename
     3688     865     544    5097    13e9 hc-sr04-range-sensor.elf

  With TARGET_HAS_NO_HW_DIVIDE defined:
     text    data     bss     dec     hex filename
     2824     865     544    4233    1089 hc-sr04-range-sensor.elf

Execution speed also appears to have improved. The moddi3 function is
now executed in half the CPU cycles.

libgcc/ChangeLog:

	* config/pru/t-pru (HOST_LIBGCC2_CFLAGS): Add
	-DTARGET_HAS_NO_HW_DIVIDE.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
2023-05-01 11:08:51 +03:00
..
asri.c Update copyright years. 2023-01-16 11:52:17 +01:00
eqd.c Update copyright years. 2023-01-16 11:52:17 +01:00
eqf.c Update copyright years. 2023-01-16 11:52:17 +01:00
ged.c Update copyright years. 2023-01-16 11:52:17 +01:00
gef.c Update copyright years. 2023-01-16 11:52:17 +01:00
gtd.c Update copyright years. 2023-01-16 11:52:17 +01:00
gtf.c Update copyright years. 2023-01-16 11:52:17 +01:00
led.c Update copyright years. 2023-01-16 11:52:17 +01:00
lef.c Update copyright years. 2023-01-16 11:52:17 +01:00
lib2bitcountHI.c Update copyright years. 2023-01-16 11:52:17 +01:00
lib2divHI.c Update copyright years. 2023-01-16 11:52:17 +01:00
lib2divQI.c Update copyright years. 2023-01-16 11:52:17 +01:00
lib2divSI.c Update copyright years. 2023-01-16 11:52:17 +01:00
libgcc-eabi.ver Update copyright years. 2023-01-16 11:52:17 +01:00
ltd.c Update copyright years. 2023-01-16 11:52:17 +01:00
ltf.c Update copyright years. 2023-01-16 11:52:17 +01:00
mpyll.S Update copyright years. 2023-01-16 11:52:17 +01:00
pru-abi.h Update copyright years. 2023-01-16 11:52:17 +01:00
pru-asm.h Update copyright years. 2023-01-16 11:52:17 +01:00
pru-divmod.h Update copyright years. 2023-01-16 11:52:17 +01:00
sfp-machine.h Update copyright years. 2023-01-16 11:52:17 +01:00
t-pru libgcc pru: Define TARGET_HAS_NO_HW_DIVIDE 2023-05-01 11:08:51 +03:00