[Patch libgcc] Enable HCmode multiply and divide (mulhc3/divhc3)
commit0abcd6cc738c5afd131c232ddb6809e6ff8e8def
authorJames Greenhalgh <james.greenhalgh@arm.com>
Fri, 9 Sep 2016 09:40:22 +0000 (9 09:40 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Fri, 9 Sep 2016 09:40:22 +0000 (9 09:40 +0000)
treefa60721ba37968ad4ebd70293c6f08a547f86ddf
parentf67a81a5e266a110963062cf3d76c98d8bcb0974
[Patch libgcc] Enable HCmode multiply and divide (mulhc3/divhc3)

This patch arranges for half-precision complex multiply and divide
routines to be built if __LIBGCC_HAS_HF_MODE__.  This will be true
if the target supports the _Float16 type.

libgcc/

PR target/63250
*  Makefile.in (lib2funcs): Build _mulhc3 and _divhc3.
* libgcc2.h (LIBGCC_HAS_HF_MODE): Conditionally define.
(HFtype): Likewise.
(HCtype): Likewise.
(__divhc3): Likewise.
(__mulhc3): Likewise.
* libgcc2.c: Support _mulhc3 and _divhc3.

From-SVN: r240043
libgcc/ChangeLog
libgcc/Makefile.in
libgcc/libgcc2.c
libgcc/libgcc2.h