[fixed-point] Patch for conversion functions in libgcc

Fu, Chao-Ying fu@mips.com
Tue Mar 20 21:34:00 GMT 2007


Hi,

  This patch adds conversion functions involving fixed-point data
in libgcc.  A new test (convert.c) is added.  Thanks!

Regards,
Chao-ying

libgcc/ChangeLog
2007-03-20  Chao-ying Fu  <fu@mips.com>

	* Makefile.in (ALL_MODE): New define to include all modes.
	(qq-fixed-objects .. df-fixed-objects): New define for conversions
	involving fixed-point.  New rules for these objects.
	(libgcc-objects): Add the above objects.

gcc/ChangeLog
2007-03-20  Chao-ying Fu  <fu@mips.com>

	* config/fixed-bit.c: Update comments for conversion functions.
	(FIXED_ALL, SAT_FIXED_ALL, FIXED_UINT, SAT_FIXED_UINT): New functions
	for fixed-point to fixed-point, signed integer to/from fixed-point,
	unsigned integer to/from fixed-point, floating-point to/from
	fixed-point with or without saturation.
	* config/fixed-bit.h: Update comments for conversion functions.
	(LIBGCC2_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE,
	LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE): New defines.
	(HAVE_QI, HAVE_UQI, HAVE_HI, HAVE_UHI, HAVE_USI, HAVE_UDI, HAVE_UTI):
	New defines.
	(SFtype, DFtype): New types.
	(HAVE_SF, HAVE_DF): New defines.
	Add all necessary defines for conversion functions.

gcc/testsuite/ChangeLog
2007-03-20  Chao-ying Fu  <fu@mips.com>

	* gcc.dg/fixed-ponit/convert.c: New test for conversions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc.diff
Type: application/octet-stream
Size: 48185 bytes
Desc: gcc.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070320/092bc2e7/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: convert.c
Type: application/octet-stream
Size: 15065 bytes
Desc: convert.c
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070320/092bc2e7/attachment-0001.obj>


More information about the Gcc-patches mailing list