diff options
Diffstat (limited to 'gcc/config/i386/driver-i386.c')
-rw-r--r-- | gcc/config/i386/driver-i386.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c index c38cb756cf8..af3088e5b4b 100644 --- a/gcc/config/i386/driver-i386.c +++ b/gcc/config/i386/driver-i386.c @@ -411,7 +411,7 @@ const char *host_detect_local_cpu (int argc, const char **argv) unsigned int has_avx512er = 0, has_avx512pf = 0, has_avx512cd = 0; unsigned int has_avx512f = 0, has_sha = 0, has_prefetchwt1 = 0; unsigned int has_clflushopt = 0, has_xsavec = 0, has_xsaves = 0; - unsigned int has_avx512dq = 0, has_avx512bw = 0; + unsigned int has_avx512dq = 0, has_avx512bw = 0, has_avx512vl = 0; bool arch; @@ -492,6 +492,7 @@ const char *host_detect_local_cpu (int argc, const char **argv) has_clflushopt = ebx & bit_CLFLUSHOPT; has_avx512dq = ebx & bit_AVX512DQ; has_avx512bw = ebx & bit_AVX512BW; + has_avx512vl = ebx & bit_AVX512VL; has_prefetchwt1 = ecx & bit_PREFETCHWT1; } @@ -906,6 +907,7 @@ const char *host_detect_local_cpu (int argc, const char **argv) const char *xsaves = has_xsaves ? " -mxsaves" : " -mno-xsaves"; const char *avx512dq = has_avx512dq ? " -mavx512dq" : " -mno-avx512dq"; const char *avx512bw = has_avx512bw ? " -mavx512bw" : " -mno-avx512bw"; + const char *avx512vl = has_avx512vl ? " -mavx512vl" : " -mno-avx512vl"; options = concat (options, mmx, mmx3dnow, sse, sse2, sse3, ssse3, sse4a, cx16, sahf, movbe, aes, sha, pclmul, @@ -914,7 +916,8 @@ const char *host_detect_local_cpu (int argc, const char **argv) hle, rdrnd, f16c, fsgsbase, rdseed, prfchw, adx, fxsr, xsave, xsaveopt, avx512f, avx512er, avx512cd, avx512pf, prefetchwt1, clflushopt, - xsavec, xsaves, avx512dq, avx512bw, NULL); + xsavec, xsaves, avx512dq, avx512bw, avx512vl, + NULL); } done: |