| To: | "Maciej W. Rozycki" <macro@linux-mips.org> |
|---|---|
| Subject: | Re: [PATCH] Improve atomic.h implementation robustness |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Thu, 2 Dec 2004 00:39:41 +0100 |
| Cc: | Dominic Sweetman <dom@mips.com>, Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>, linux-mips@linux-mips.org, Nigel Stephens <nigel@mips.com>, David Ung <davidu@mips.com> |
| In-reply-to: | <Pine.LNX.4.58L.0412012136480.13579@blysk.ds.pg.gda.pl> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20041201070014.GG3225@rembrandt.csv.ica.uni-stuttgart.de> <16813.39660.948092.328493@doms-laptop.algor.co.uk> <20041201123336.GA5612@linux-mips.org> <Pine.LNX.4.58L.0412012136480.13579@blysk.ds.pg.gda.pl> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.4.1i |
On Wed, Dec 01, 2004 at 09:50:45PM +0000, Maciej W. Rozycki wrote:
> No surprise as the "o" constraint doesn't mean anything particular for
> MIPS. All addresses are offsettable -- there is no addressing mode that
> would preclude it, so "o" is exactly the same as "m".
This is what the gcc docs say:
[...]
`o'
A memory operand is allowed, but only if the address is
"offsettable". This means that adding a small integer (actually,
the width in bytes of the operand, as determined by its machine
mode) may be added to the address and the result is also a valid
memory address.
For example, an address which is constant is offsettable; so is an
address that is the sum of a register and a constant (as long as a
slightly larger constant is also within the range of
address-offsets supported by the machine); but an autoincrement or
autodecrement address is not offsettable. More complicated
indirect/indexed addresses may or may not be offsettable depending
on the other addressing modes that the machine supports.
[...]
So it is not the same as "m".
Ralf
|
| Previous by Date: | Re: [PATCH] Improve atomic.h implementation robustness, Thiemo Seufer |
|---|---|
| Next by Date: | Re: [PATCH] Improve atomic.h implementation robustness, Maciej W. Rozycki |
| Previous by Thread: | Re: [PATCH] Improve atomic.h implementation robustness, Maciej W. Rozycki |
| Next by Thread: | Re: [PATCH] Improve atomic.h implementation robustness, Maciej W. Rozycki |
| Indexes: | [Date] [Thread] [Top] [All Lists] |