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: [tree-ssa] Merge status


On Sat, 20 Mar 2004, Andreas Jaeger wrote:

> > #define IXDR_GET_LONG(buf) ((long)IXDR_GET_INT32(buf))
> 
> If I use this definition, the assembler code on AMD64 looks different:

First guess as to why there might be different code, the existing
definition looks like it will zero-extend the unsigned result of ntohl
while the definition I gave will sign-extend it.  I suspect sign-extension
is correct (given the separate _U_LONG definitions), but maybe

#define IXDR_GET_LONG(buf) ((long)IXDR_GET_U_INT32(buf))

will be more compatible with the current definition.

-- 
Joseph S. Myers
jsm@polyomino.org.uk


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