Article View: comp.arch
Article #253Re: Performance of xchg reg,reg
From: Dan Cross
Date: Tue, 20 Oct 2026 19:56
Date: Tue, 20 Oct 2026 19:56
20 lines
1784 bytes
1784 bytes
In article <jwvzew8mpwv.fsf-monnier+comp.arch@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> wrote: >Dan Cross [2026-10-20 02:00:48] wrote: >> In article <jwv8q3uqrxf.fsf-monnier+comp.arch@gnu.org>, >> Stefan Monnier <monnier@iro.umontreal.ca> wrote: >>>How could code witness the difference? >> The effects of a bus lock include disallowing memory operations >> (except for instruction fetches or page table accesses) passing >> a locked operation. > >Ah, so it doesn't just make the operation atomic, but it additionally >imposes barrier-style restrictions on reordering surrounding memory >operations? I see, thanks. Well, to be clear, I don't think that _that particular form_ of `xchg` actually does. But if the destination were a memory operand, it would, yes. :-) - Dan C.
Technical Details
Message-ID:
<11b8h1r$re0$1@reader2.panix.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mailReferences:
<2026Oct13.104347@mips.complang.tuwien.ac.at> <jwv8q3uqrxf.fsf-monnier+comp.arch@gnu.org> <11b6i0g$f44$1@reader2.panix.com> <jwvzew8mpwv.fsf-monnier+comp.arch@gnu.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail From: cross@spitfire.i.gajendra.net (Dan Cross) Newsgroups: comp.arch Subject: Re: Performance of xchg reg,reg Date: Tue, 20 Oct 2026 19:56:43 -0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: <11b8h1r$re0$1@reader2.panix.com> References: <2026Oct13.104347@mips.complang.tuwien.ac.at> <jwv8q3uqrxf.fsf-monnier+comp.arch@gnu.org> <11b6i0g$f44$1@reader2.panix.com> <jwvzew8mpwv.fsf-monnier+comp.arch@gnu.org> Injection-Date: Tue, 20 Oct 2026 19:56:43 -0000 (UTC) Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80"; logging-data="28096"; mail-complaints-to="abuse@panix.com" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: cross@spitfire.i.gajendra.net (Dan Cross)