Article View: comp.arch
Article #147Re: Performance of xchg reg,reg
From: Terje Mathisen
Date: Fri, 16 Oct 2026 12:45
Date: Fri, 16 Oct 2026 12:45
18 lines
1880 bytes
1880 bytes
Lawrence D’Oliveiro wrote: > On Thu, 15 Oct 2026 14:21:07 -0700, Chris M. Thomasson wrote: > >> Well, for some reason the LOCK prefix is implied for XCHG. > > I can imagine that being useful when accessing memory, but not just > for exchanging registers ... The implied LOCK only happens with a memory operand specified in the r/m byte. Terje -- - <Terje.Mathisen at tmsw.no> "almost all programming can be viewed as an exercise in caching"
Technical Details
Message-ID:
<11at6a2$39q08$1@dont-email.me>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-mailReferences:
<2026Oct13.104347@mips.complang.tuwien.ac.at> <11arg45$2p70p$1@dont-email.me> <11arhcb$2p8h1$7@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: Terje Mathisen <terje.mathisen@tmsw.no> Newsgroups: comp.arch Subject: Re: Performance of xchg reg,reg Date: Fri, 16 Oct 2026 14:45:56 +0200 Organization: A noiseless patient Spider Lines: 18 Message-ID: <11at6a2$39q08$1@dont-email.me> References: <2026Oct13.104347@mips.complang.tuwien.ac.at> <11arg45$2p70p$1@dont-email.me> <11arhcb$2p8h1$7@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Date: Fri, 16 Oct 2026 12:45:55 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3467272"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+L8ZDDci72hvXHyQAw4j4Hn3XVR1mCl3SfJQOnJm29oA=="; posting-host="45bd053725f3fed6dbbae664fc3b24f3" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0 SeaMonkey/2.53.24 Cancel-Lock: sha1:l7YJ4Ff6ttbMoivbZhjIPi71JPA= sha256:lXxrJCPNwftJzZ4djJIwSqO+7VBNg1wb//l/F5Jrq5s= sha1:kw1WOWUOW5tw/JjRrXS39Ce1m1E= sha256:ML+q+AvHswg8NMU4VZjrJAmVx9N6Rvlejm5MdbaNmf8= In-Reply-To: <11arhcb$2p8h1$7@dont-email.me>