[Top] [All Lists]

Re: [PATCH] incorrect asm constraints for ll/sc constructs

To: Daniel Jacobowitz <>
Subject: Re: [PATCH] incorrect asm constraints for ll/sc constructs
From: "Maciej W. Rozycki" <>
Date: Thu, 24 May 2001 15:42:56 +0200 (MET DST)
In-reply-to: <>
Organization: Technical University of Gdansk
Reply-to: "Maciej W. Rozycki" <>
On Wed, 23 May 2001, Daniel Jacobowitz wrote:

> The ll/sc constructs in the kernel use ".set noat" to inhibit use of $at,
> and proceed to use it themselves.  This is fine, except for one problem: the
> constraints on memory operands are "o" and "=o", which means offsettable
> memory references.  If I'm not mistaken, the assembler will (always?)
> turn these into uses of $at if the offset is not 0 - at least, it certainly
> seems to do that here (gcc 2.95.3, binutils  Just being honest
> with the compiler and asking for a real memory reference does the trick. 

 Both "m" and "o" seem to be incorrect here as both are the same for MIPS; 
"R" seems to be appropriate, OTOH.  Still gcc 2.95.3 doesn't handle "R" 
fine for all cases, but it works most of the time and emits a warning
otherwise.  I can't comment on 3.0.

 Note that if noat is in effect and at is to be used, gas should bail out
with an error.  There is a bug, if it doesn't.

+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+        e-mail:, PGP key available        +

<Prev in Thread] Current Thread [Next in Thread>