This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
x86 fixuns_truncsfsi2 and expand_fix
- To: egcs at egcs dot cygnus dot com
- Subject: x86 fixuns_truncsfsi2 and expand_fix
- From: John Wehle <john at feith dot com>
- Date: Fri, 9 Apr 1999 23:47:01 -0400 (EDT)
The x86 can convert from a float to a signed integer. It does not
support converting a float to an unsigned integer. The x86 port
currently defines expanders for fixuns_truncsfsi2 which work by
doing a signed conversion to DImode and then taking the lower half.
Why is it useful for a port to provide these expanders considering
that expand_fix in optabs.c is also capable of converting a float to
an unsigned integer in the same fashion without these expanders being
present?
-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------