summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/builtin_target.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/builtin_target.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/builtin_target.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/builtin_target.c b/gcc/testsuite/gcc.target/i386/builtin_target.c
index 8d45d83c89a..c620a7415ac 100644
--- a/gcc/testsuite/gcc.target/i386/builtin_target.c
+++ b/gcc/testsuite/gcc.target/i386/builtin_target.c
@@ -213,6 +213,10 @@ check_features (unsigned int ecx, unsigned int edx,
assert (__builtin_cpu_supports ("avx512ifma"));
if (ecx & bit_AVX512VBMI)
assert (__builtin_cpu_supports ("avx512vbmi"));
+ if (edx & bit_AVX5124VNNIW)
+ assert (__builtin_cpu_supports ("avx5124vnniw"));
+ if (edx & bit_AVX5124FMAPS)
+ assert (__builtin_cpu_supports ("avx5124fmaps"));
}
}
@@ -311,6 +315,10 @@ quick_check ()
assert (__builtin_cpu_supports ("avx512f") >= 0);
+ assert (__builtin_cpu_supports ("avx5124vnniw") >= 0);
+
+ assert (__builtin_cpu_supports ("avx5124fmaps") >= 0);
+
/* Check CPU type. */
assert (__builtin_cpu_is ("amd") >= 0);