This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: Implement 128bit TImode FP-INT conversions for soft-fp


Hello!

Attached patch implements TImode conversion for soft-fp. These files
are needed for X86_64 for floatint conversions between 128bit TImode
integers. Please note that the size of DImode integer is 64bits for
x86_64.

As TImode is not supported for all targets, it should be defined in
target header (sfp-machine.h), as shown in the patch, attached to
http://gcc.gnu.org/ml/gcc-patches/2007-04/msg00728.html.

The patch is diffed agains gcc config/soft-fp, but these files are
shared with glibc's soft-fp. This patch passes all gcc's floatint
tests for x86_64 target.

Additionally, a couple of oversights (i.e. DFtype should be used
instead of double) are fixed along the way.

As stated in http://gcc.gnu.org/ml/gcc-patches/2007-04/msg00729.html,
these files could be usefull for other targets, so I would like to ask
for an inclusion in libc's soft-fp library.

2007-04-13 Uros Bizjak <ubizjak@gmail.com>

       * soft-fp/floattisf.c: New file.
       * soft-fp/floattidf.c: New file.
       * soft-fp/floattitf.c: New file.
       * soft-fp/floatuntisf.c: New file.
       * soft-fp/floatuntidf.c: New file.
       * soft-fp/floatuntitf.c: New file.
	* soft-fp/fixsfti.c: New file.
	* soft-fp/fixdfti.c: New file.
	* soft-fp/fixtfti.c: New file.
	* soft-fp/fixunssfti.c: New file.
	* soft-fp/fixunsdfti.c: New file.
	* soft-fp/fixunstfti.c: New file.

	* soft-fp/floatunsidf.c (__floatunsidf): Use DFtype instead of
	double in the function declaration.
	* soft-fp/floatundidf.c (__floatundidf): Use DFtype instead of
	double in the function declaration.
	* soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
	float in the function declaration.
	* soft-fp/floatunsisf.c (__floatunsisf): Use SFtype instead of
	float in the function declaration.

Uros.

Attachment: libc.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]