Curious Undisclosed Skylake Bug
outerproduct.net
outerproduct.net
I built and ran the provided code on an AMD Zen 4 CPU, and it printed "two large numbers and two small numbers", so could this bug also be present in other microarchitectures implementing AVX-512 other than Skylake(-X)?
[1] https://www.pcgamer.com/intel-skylake-why-apple-left/
[2] https://www.google.com/search?client=safari&rls=en&q=skylake...
[3] https://support.apple.com/en-us/HT213264
[4] https://www.computerworld.com/article/3025399/microsoft-wont...
Skylake (and a few others) have a "well-known" false dependency bug in popcnt.
It's listed in the skylake erratum as "POPCNT Instruction May Take Longer to Execute than Expected".
Not like it'd produce a wrong result, but you could say it's a bug (presumably) in the out-of-order scheduler.
POPCNT false dependency on sky lake was never fixed, we just ended up with compilers inserting useless xor's before popcnt to break dependencies.