[PATCH]: Implement 128bit TImode FP-INT conversions for soft-fp
Uros Bizjak
ubizjak@gmail.com
Fri Apr 13 07:59:00 GMT 2007
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libc.diff
Type: application/octet-stream
Size: 24453 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20070413/4cc77001/attachment.obj>
More information about the Libc-alpha
mailing list