🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #217

Re: Performance of xchg reg,reg

#217
From: Stefan Monnier
Date: Mon, 19 Oct 2026 03:43
14 lines
2190 bytes
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
Technical Details
Message-ID: <jwv8q3uqrxf.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>

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: Sun, 18 Oct 2026 23:43:47 -0400
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <jwv8q3uqrxf.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>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Mon, 19 Oct 2026 07:08:31 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1938021"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+2y4wl0Guc66y5BMDfYikHx8P5Pda9DCY="; posting-host="8e25fd6c44108343be23cbdfdc37dcf9"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:9/3MacMTh4BUzu7Ar9v11PFOtzg=
	sha1:kL8kvDsW28hN8H1/nPcuXonqwik= sha256:YknKpag/vsHCS4aktHdRpaMuZvRdla0spl8mgxOmnok=
	sha1:q07r54HUOHSMvG8tymMMo6TEnP4= sha256:KILF/XEpPsABBm+D9co/w+1TNGIayNXiX7pzM9TyNNY=
In-Reply-To: <2026Oct18.185726@mips.complang.tuwien.ac.at> (message from anton@mips.complang.tuwien.ac.at (Anton Ertl) on Sun, 18 Oct 2026 16:57:26 GMT)