https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119468

--- Comment #6 from Avinash Jayakar <avinashd at gcc dot gnu.org> ---
(In reply to Segher Boessenkool from comment #5)
> Our current code for "parity", does not do anything newer than ISA 2.05 (so,
> p6),
> and is mostly ISA 2.02 even, so p5.
> 
> popcntd is an ISA 2.07 (p8) insn.  But that is 12 years old already as well,
> maybe we should finally make good use of its new insns?  :-)

Correct, I have created a patch for this, please let me know if this is OK.

https://gcc.gnu.org/pipermail/gcc-patches/2025-December/702916.html

Also in the p10 ISA document, popcntd is mentioned to be supported from 2.06.
Thats why in comment in this patch I mentioned that, and in test case I have
used power7.

Reply via email to