From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] x86: fix variable_test_bit() asmconstraints Date: Fri, 14 Mar 2008 14:04:14 +0000 Message-ID: References: <20080314135938.GN4358@implementation.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080314135938.GN4358@implementation.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Samuel Thibault , Jan Beulich Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 14/3/08 13:59, "Samuel Thibault" wrote: >> Atomic ops imply a barrier (otherwise the compiler can defeat the >> purpose of the atomic operation). The non-atomic ones don't need a >> dummy operand, but one that precisely describes the place in memory >> that changes. > > Mmm, won't that unnecessarily make the compiler put code to compute that > place? x86 has enough fancy addressing modes that usually the compiler can emit the effective address without pre-computing any part of it. It's not guaranteed to do this, though, it's true. -- Keir