Hi Intel compiler engineers :)
Is there any way we could target specific instruction sets instead of specific micro-architectures using the same dispatching technique (__declspec(cpu_specific) and __declspec(cpu_dispatch)) which already exists in the compiler?
// SSE2 code here
// SSE4.2 code here
I understand that SSE4.2 is not (yet) supported by non-Intel CPUs, but SSE2 is.
I can always write my own dispatcher based on CPUID testing, but native support by compiler would be much easier to work with.