From 67ba192126aed02408b6a481d21c120ba6c56ef9 Mon Sep 17 00:00:00 2001 From: Guillaume Piolat Date: Sat, 26 Oct 2024 15:19:10 +0200 Subject: [PATCH] Fix warning with old LLVM --- source/inteli/internals.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/inteli/internals.d b/source/inteli/internals.d index 494e823..5685dbb 100644 --- a/source/inteli/internals.d +++ b/source/inteli/internals.d @@ -293,7 +293,7 @@ version(LDC) enum LDC_with_AVX512VBMI = __traits(targetHasFeature, "avx512vbmi") && LDC_with_ia32_builtins; enum LDC_with_AVX512VBMI2 = __traits(targetHasFeature, "avx512vbmi2") && LDC_with_ia32_builtins; - enum LDC_with_AVX512FP16 = __traits(targetHasFeature, "avx512fp16") && LDC_with_ia32_builtins; + enum LDC_with_AVX512FP16 = (__VERSION__ > 2101) && __traits(targetHasFeature, "avx512fp16") && LDC_with_ia32_builtins; enum LDC_with_AVX512BF16 = __traits(targetHasFeature, "avx512bf16") && LDC_with_ia32_builtins; enum LDC_with_AVX512VNNI = __traits(targetHasFeature, "avx512vnni") && LDC_with_ia32_builtins; enum LDC_with_AVX512BITALG = __traits(targetHasFeature, "avx512bitalg") && LDC_with_ia32_builtins;