Article View: comp.arch
Article #574Re: I Was Wrong About Itanium
From: Chris M. Thomasson
Date: Sat, 07 Nov 2026 21:06
Date: Sat, 07 Nov 2026 21:06
45 lines
2603 bytes
2603 bytes
On 11/7/2026 12:37 PM, Chris M. Thomasson wrote:
> On 11/7/2026 5:55 AM, John Savard wrote:
>> When I looked at the Itanium instruction set for the first time, I had
>> thought that it had the severe weakness of being built around a single
>> microarchitectural implementation.
>>
>> However, I have now learned that one of the later models of the
>> Itanium, the series codenamed "Poulson", was 12-issue. So the Itanium
>> architecture was able to survive advances in chip technology.[...]
>
> I never really understood why Itanium had this odd ball instruction,
> Volume 3: Instruction Set Reference...
>
> LOCK CMP8XCHG16 iirc...
I am guessing that the CMP8 part works with the version monotonic
counter. So, the data structure for say a classic lock-free LIFO, needs
to be:
struct anchor
{
uint64_t m_aba;
node* m_head;
};
this would be useless:
struct anchor
{
node* m_head;
uint64_t m_aba;
};
struct anchor padded to l2 cacheline and aligned of course.
There is a way to use CMPXCHG for the push and CMPXCHG8/16 for the pop
over on x86/x64. But it depends on what you load first for the pop. We
need to load the aba counter first!
So for Itanium, the aba needs to be first in the structure!
>
> Why not just CMPXCHG16?
Technical Details
Message-ID:
<11co3st$3q712$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:
<6aef2d40.2052656@news.eternal-september.org> <11co26g$3pjfa$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: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: comp.arch Subject: Re: I Was Wrong About Itanium Date: Sat, 7 Nov 2026 13:06:35 -0800 Organization: A noiseless patient Spider Lines: 45 Message-ID: <11co3st$3q712$1@dont-email.me> References: <6aef2d40.2052656@news.eternal-september.org> <11co26g$3pjfa$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 07 Nov 2026 21:06:38 +0000 (UTC) Injection-Info: dont-email.me; logging-data="4004898"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19iqA8vOeut5f0iKFReLFTtyAb9QuNaUdc="; posting-host="bc0e21f3ed9b117e5b0477befa9d31ee" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:mbz2dsV7TH8FaFwA0AcUPmee0FQ= sha256:qVRfejQdVuxbn9x1+CAFA3po2j5VbCDqpLNz3YBt9Rs= sha1:J2tFtmw+bQkxLb55p0mivGGBtU0= sha256:QHhHGoSYXl5WIpevcSLdeAa51Lb5W9acsWgXiUHA5II= Content-Language: en-US In-Reply-To: <11co26g$3pjfa$1@dont-email.me>