gcc/libgcc/config/msp430
Jozef Lawrynowicz bf7b94d407 MSP430: Add 64-bit hardware multiply support
Hardware multipliers that support widening 32-bit multiplication can
be used to perform a 64-bit * 64-bit multiplication more efficiently
than a software implementation.

The following equation is used to perform 64-bit multiplication for
devices with "32bit" or "f5series" hardware multiply versions:

  64bit_result = (low32_op0 * lop32_op1)
    + ((low32_op0 * high32_op1) << 32)
       + ((high32_op0 * low32_op1) << 32)

libgcc/ChangeLog:

	* config/msp430/lib2hw_mul.S (mult64_hw): New.
	(if MUL_32): Use mult64_hw for __muldi3.
	(if MUL_F5): Use mult64_hw for __muldi3.
	* config/msp430/lib2mul.c (__muldi3): New.
	* config/msp430/t-msp430 (LIB2FUNCS_EXCLUDE): Define.
2020-11-18 11:05:27 +00:00
..
cmpd.c cmpd.c (__mspabi_cmpf): Add prototype. 2016-04-25 11:13:35 +00:00
cmpsi2.S Update copyright years. 2020-01-01 12:51:42 +01:00
epilogue.S Update copyright years. 2020-01-01 12:51:42 +01:00
floathidf.c cmpd.c (__mspabi_cmpf): Add prototype. 2016-04-25 11:13:35 +00:00
floathisf.c cmpd.c (__mspabi_cmpf): Add prototype. 2016-04-25 11:13:35 +00:00
floatunhidf.c cmpd.c (__mspabi_cmpf): Add prototype. 2016-04-25 11:13:35 +00:00
floatunhisf.c cmpd.c (__mspabi_cmpf): Add prototype. 2016-04-25 11:13:35 +00:00
lib2bitcountHI.c Update copyright years. 2020-01-01 12:51:42 +01:00
lib2divHI.c Update copyright years. 2020-01-01 12:51:42 +01:00
lib2divQI.c Update copyright years. 2020-01-01 12:51:42 +01:00
lib2divSI.c Update copyright years. 2020-01-01 12:51:42 +01:00
lib2hw_mul.S MSP430: Add 64-bit hardware multiply support 2020-11-18 11:05:27 +00:00
lib2mul.c MSP430: Add 64-bit hardware multiply support 2020-11-18 11:05:27 +00:00
lib2shift.c Update copyright years. 2020-01-01 12:51:42 +01:00
mpy.c gcc * config.gcc (extra_gcc_objs): Define for MSP430. 2015-12-04 17:24:30 +00:00
msp430-divmod.h Update copyright years. 2020-01-01 12:51:42 +01:00
msp430-mul.h Update copyright years. 2020-01-01 12:51:42 +01:00
slli.S MSP430: Simplify and extend shift instruction patterns 2020-08-26 20:50:58 +01:00
srai.S MSP430: Simplify and extend shift instruction patterns 2020-08-26 20:50:58 +01:00
srli.S MSP430: Simplify and extend shift instruction patterns 2020-08-26 20:50:58 +01:00
t-msp430 MSP430: Add 64-bit hardware multiply support 2020-11-18 11:05:27 +00:00