This is the mail archive of the gcc-help@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: 32 bit float emulation on 16 bit machine


Florent Defay <spira.inhabitant@gmail.com> writes:

> I tried but ...
>
>> __ucmpsi2 is a function which does an unsigned comparison of two 32-bit
>> integers.  You can get gcc to build that by compiling libgcc2.c with
>
> GCC is able to compare unsigned 32-int in normal programs (out of libgcc).

That seems odd.  If gcc can handle an unsigned 32-bit integer comparison
in a normal program without calling __ucmpsi2, then it should be able to
handle it in fp-bit.c as well.


> Plus, in both case (LIBGCC2_UNITS_PER_WORD as 2 or as 4), __ucmpsi2 or
> __ucmpdi2 is not called in _fpadd_parts. I checked by disassembling
> libgcc.a.

The linker must be complaining about something.  What is it complaining
about?

Ian


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