This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [RFC PATCH, libgcc2]: Plug target-dependant TFmode functions into libgcc2


On 6/7/07, Uros Bizjak <ubizjak@gmail.com> wrote:

Attached is a RFC patch that is used to plug in target-dependant
TFmode functions into libgcc2. Almost trivial ;)

Unfortunatelly, I have hit problems that should be fixed by "[PING] 2 new mode attributes to replace mode(word) uses in libgcc" (http://gcc.gnu.org/ml/gcc-patches/2007-06/msg00332.html). Currenlty, gcc returns "false" for soft-fp (TFmode) comparisons like 0.0 < 1.0 on x86_64.

The problem is, that soft-fp compares return tristate as "int"
(SImode), where middle-end expands check for return value in word_mode
(DImode on 64bit targets). So when -1 is returned, it is checked as
0xffffffff, leading to wrong results.

As complex division uses FABS (c) < FABS (d), it returns wrong results
for certain class of complex numbers. So IMO we have to wait until the
issue with word_mode is resolved.

Uros.


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