Looks like a VAX 11 thing: https://documentation.help/VAX11/op_POLY.htm
See also http://simh.trailing-edge.com/docs/vax_poly.pdf# and some HN discussion from 2015: http://simh.trailing-edge.com/docs/vax_poly.pdf#
Re:Apple CPU Architecture Through the Ages
by nxobject on Monday October 30, 2023 @11:06PM
(#38079755)
My other favorite instructions on the VAX: the CRC instruction, the CASE dispatch table operations, and, glory of all glories, the _3-parameter_ operand + operand + destination instructions.
Re:Apple CPU Architecture Through the Ages
by jakey_bakey on Tuesday October 31, 2023 @03:26AM
(#38081275)
Frankly, I tried to go into depth on this because it was really interesting. I am embarrassed to say it was tough to find sources outside Quora and Reddit. It's possible this HackerNews comment parent might become the canonical source :)
Re:Apple CPU Architecture Through the Ages
by Carioca on Thursday November 02, 2023 @08:27PM
(#38122544)
There are a few answers to my question now, if you're still curious
Re:Apple CPU Architecture Through the Ages
by clausecker on Tuesday October 31, 2023 @01:37PM
(#38088492)
This one is as infamous as it is useful. Modern CPUs have the same instruction, but without the built-in loop (fused multiply-add).
Likewise, modern CPUs have dedicated CRC instructions, ARM Thumb 2 famously has an instruction for case statements (jump tables, instructions TBB/TBH), and many more.
The VAX was way ahead of its time, but failed to deliver on performance due to not having a pipelined or out-of-order architecture as is industry standard today.
What CPU has this instruction and where can I learn more about it?