🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #251

Re: Performance of xchg reg,reg

#251
From: Stefan Monnier
Date: Tue, 20 Oct 2026 14:00
20 lines
2632 bytes
Stephen Fuld [2026-10-19 06:57:48] wrote:
> On 10/18/2026 8:43 PM, Stefan Monnier wrote:
>> Anton Ertl [2026-10-18 16:57:26] wrote:
>>> And actually all the stuff about XCHG with memory operands does not
>>> contradict this sentence.  It could be understood as meaning that
>>> while all the other aspects of locking don't apply to "XCHG reg, reg",
>>> the assertion of the LOCK# signal still has to occur, and that's why
>>> Intel processors implement a slow XCHG reg, reg.
>> How could code witness the difference?
>> I believe AMD can claim that its behavior is consistent with the
>> behavior you'd get when asserting the LOCK# signal.
>> === Stefan
> I believe this all started with empirical data from Anton showing different
> performance between Intel and AMD processors for XCHG reg,reg.

Indeed but my question is about the ISA definition, i.e. independent
from any specific implementation.


=== Stefan
Technical Details
Message-ID: <jwv7bjco4ly.fsf-monnier+comp.arch@gnu.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <2026Oct13.104347@mips.complang.tuwien.ac.at> <11au1vu$3ks5m$2@dont-email.me> <11aunpn$8c6$1@reader2.panix.com> <1792257076-5857@newsgrouper.org> <11b0bd3$b5b$1@reader2.panix.com> <1792265982-5857@newsgrouper.org> <2026Oct18.170823@mips.complang.tuwien.ac.at> <20261018184318.00000bee@yahoo.com> <2026Oct18.185726@mips.complang.tuwien.ac.at> <jwv8q3uqrxf.fsf-monnier+comp.arch@gnu.org> <11b57kt$244nj$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups: comp.arch
Subject: Re: Performance of xchg reg,reg
Date: Tue, 20 Oct 2026 10:00:15 -0400
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <jwv7bjco4ly.fsf-monnier+comp.arch@gnu.org>
References: <2026Oct13.104347@mips.complang.tuwien.ac.at>
	<11au1vu$3ks5m$2@dont-email.me> <11aunpn$8c6$1@reader2.panix.com>
	<1792257076-5857@newsgrouper.org> <11b0bd3$b5b$1@reader2.panix.com>
	<1792265982-5857@newsgrouper.org>
	<2026Oct18.170823@mips.complang.tuwien.ac.at>
	<20261018184318.00000bee@yahoo.com>
	<2026Oct18.185726@mips.complang.tuwien.ac.at>
	<jwv8q3uqrxf.fsf-monnier+comp.arch@gnu.org>
	<11b57kt$244nj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Tue, 20 Oct 2026 19:17:32 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3483683"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19bdSs0ZVPzRf+aX01FjRWa+B8YZbZxCaU="; posting-host="37b276353ba2838a867dd91037edf62c"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:s7QxlkkImN+xzfV39VZRuDG9cKI=
	sha1:zkxhb504T/vggel4WEtjpU72Pdc= sha256:+IPVBvAg6jdbydyOCuV6nUdfZMM8FeOY+Rkc0EMS9vU=
	sha1:r7fhETZFNsGnCzeJ6R/FgxQfopg= sha256:IzpoC1wFskwQuJcE6w+B2uBmjYvjppHuVISK68QBqN8=
In-Reply-To: <11b57kt$244nj$1@dont-email.me> (message from Stephen Fuld <sfuld@alumni.cmu.edu.invalid> on Mon, 19 Oct 2026 06:57:48 -0700)