public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* subword semantics
@ 2007-01-19 12:07 Joern Rennecke
  2007-01-19 15:30 ` Dave Brolley
  0 siblings, 1 reply; 2+ messages in thread
From: Joern Rennecke @ 2007-01-19 12:07 UTC (permalink / raw)
  To: cgen

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: subword semantics
  2007-01-19 12:07 subword semantics Joern Rennecke
@ 2007-01-19 15:30 ` Dave Brolley
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Brolley @ 2007-01-19 15:30 UTC (permalink / raw)
  To: Joern Rennecke; +Cc: cgen

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-19 15:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-19 12:07 subword semantics Joern Rennecke
2007-01-19 15:30 ` Dave Brolley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).