]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/testsuite/gcc.target/i386/builtin_target.c
Enable support for bfloat16 which will be in Future Cooper Lake.
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / i386 / builtin_target.c
index d39626611a7672f8bb70b27ef714a3f40aa83235..7a8b6e805ed2257a6b7445ae5a0a82dc15851242 100644 (file)
@@ -265,6 +265,10 @@ check_features (unsigned int ecx, unsigned int edx,
        assert (__builtin_cpu_supports ("avx5124vnniw"));
       if (edx & bit_AVX5124FMAPS)
        assert (__builtin_cpu_supports ("avx5124fmaps"));
+
+      __cpuid_count (7, 1, eax, ebx, ecx, edx);
+      if (eax & bit_AVX512BF16)
+       assert (__builtin_cpu_supports ("avx512bf16"));
     }
 
   /* Check cpuid level of extended features.  */