This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

x86 fixuns_truncsfsi2 and expand_fix


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  |                         |
-------------------------------------------------------------------------



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