DI support in libgcc2
Hartmut Schirmer
hartmut.schirmer@arcor.de
Fri Jul 19 10:46:00 GMT 2002
Hi,
Several functions in libgcc2.c call __negdi2 even if
the target supports negating a DI.
I tried this hack for i386 with gcc 3.1
#include "insn-flags.h"
DWtype
__negdi2 (DWtype u)
{
#if HAVE_negdi2
return -u;
#else
...
to get an optimized version. The same could be done
for other support routines (shifting, mul, mod, ...)
Is this the right way to go ?
Hartmut
More information about the Gcc
mailing list