Early 12th gen had AVX512 disabled by firmware only - disabling the E-cores re-enabled AVX512 on those, allowing for testing.
From what I heard, it took more than disabling the E-cores. There was something else the BIOS had to do, involving some kind of undocumented diagnostic mode that Intel left exposed.
Once that workaround was known, Intel fused off the AVX512 units, but on Xeon (using only P-cores) those units didn't change much between 12th and 13th/14th gens.
And, yes, you can simply benchmark a 14th-gen Core Xeon and call it a day.
Ugh, where to start unpicking this ball of confusion?
First, we have to define what's a "Xeon". The Xeon E-series are nothing more than mainstream desktop CPU dies, in a mainstream socket, but requiring a special motherboard chipset (W680, in this case), in order to utilize their extra features. Intel never made Xeon E versions of the Gen 12 CPUs. Instead, Intel enabled some Xeon-class features on upper-end mainstream Gen 12 models, provided you used them on a mobo with the W680 chipset.
As for "Gen 13", Intel did
finally release a Xeon E-series based on Raptor Lake dies, but they had the E-cores and AVX-512 both disabled. Also, the iGPU was fused off, whereas previous generations of Xeon E-series still offered iGPU on select models. There was no "Gen 14" refresh of the Xeon E-series.
Next, Intel has the Xeon W-series, which is a
completely different die. As a matter of fact, they use two different die configurations, with the low-end going up to 24 P-cores and 4 memory channels, on a monolithic die, and the larger one using (I think) the same die configuration as the Xeon Scalable server CPUs and 8 memory channels. The P-cores in all of these CPUs are fundamentally different than the ones in the desktop product line, in that they have an additional AVX-512 FMA port and an AMX unit in each core. They also feature a larger L2 cache, equal to that found in Raptor Cove, yet these cores aren't Raptor Cove. It's common for Intel to increase cache sizes in their server core variants and add a second AVX-512 FMA port.
In summary, the only way to do an apples-to-apples comparison of AVX-512 between Intel and AMD, on desktop platforms, is with those early Gen 12 dies. You
cannot benchmark AVX-512 on any client cores newer than that.