Fix LLVM vs Apple LLVM version numbering confusion, for $avx512ifma
authorRichard Levitte <levitte@openssl.org>
Wed, 5 Oct 2022 17:34:52 +0000 (19:34 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 5 Oct 2022 17:38:46 +0000 (19:38 +0200)
commitc95e2030c34646176b4843b5f0f48720d896f427
tree9e4cdf6f729d155b285f148dca3e2848ce107412
parent6b9d582d49353750f36c14dd20f5f962e7d52d3b
Fix LLVM vs Apple LLVM version numbering confusion, for $avx512ifma

Apple LLVM has a different version numbering scheme than upstream LLVM.
That makes for quite a bit of confusion.

https://en.wikipedia.org/wiki/Xcode#Toolchain_versions to the rescue,
they have collected quite a lot of useful data.

This change is concentrated around the `$avx512ifma` flag

Fixes #16670 for OpenSSL 3.0

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19352)
crypto/bn/asm/rsaz-avx512.pl