This is the mail archive of the cgen@sourceware.org mailing list for the CGEN 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: subword semantics


Joern Rennecke wrote:

What are the actual semantics of subword?
The documentation says that it is endian dependent, but the existing
bi-endian ports always use word 0 to refer to the most significant part.


You are correct. The semantics are not endian dependent. Similar to the way shift operators are not endian dependent. The documentation also says that dependence on endianness was to be revisited. Perhaps that's what happend, or perhaps the intent was to recommend caution when using a (mem ...) expression as the operand of (subword ...)

Dave


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