public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Pointer arithmetic
@ 2013-07-09 16:37 Hendrik Greving
  2013-08-07 20:40 ` Oleg Endo
  0 siblings, 1 reply; 3+ messages in thread
From: Hendrik Greving @ 2013-07-09 16:37 UTC (permalink / raw)
  To: gcc

On a machine with ABI ILP32LL64:

(insn 123 122 124 (nil) (set (reg:SI 392)
        (mem:SI (plus:SI (reg/v:SI 386)
                (reg/v:SI 349)) [0 sec 0 space 0, cmsmode 0 S4 A32])) -1 (nil)
    (nil))

If we support legitimate memory addresses like [r1+r2] (e.g. indexed
addresses), can the above RTL match such a load? I am asking because
of overflows, I am not sure how that part is defined, and where the
Spec is. What do I need to check in the backend for such a definition?
Is this POINTER_SIZE? E.g. what if the machine supports > 32 bits, who
is responsible to make sure that there is no overflow > 32 bits in
this case? Compiler? Assembler? Or even the user?

Thanks,
Hendrik

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

end of thread, other threads:[~2013-08-07 22:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-09 16:37 Pointer arithmetic Hendrik Greving
2013-08-07 20:40 ` Oleg Endo
2013-08-07 22:43   ` Hendrik Greving

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).