修訂 | 152cc35ebff44eb06a00364ca1dbcf5fca6772b4 (tree) |
---|---|
時間 | 2022-10-19 02:47:29 |
作者 | H.J. Lu <hjl.tools@gmai...> |
Commiter | H.J. Lu |
x86: Disable AVX-VNNI when disabling AVX2
Since AVX-VNNI requires AVX2, disable AVX-VNNI when disabling AVX2.
* i386-gen.c (cpu_flag_init): Add CpuAVX_VNNI to
CPU_ANY_AVX2_FLAGS.
* i386-init.h: Regenerate.
@@ -370,7 +370,7 @@ static initializer cpu_flag_init[] = | ||
370 | 370 | { "CPU_ANY_AVX_FLAGS", |
371 | 371 | "CPU_ANY_AVX2_FLAGS|CpuF16C|CpuFMA|CpuFMA4|CpuXOP|CpuAVX" }, |
372 | 372 | { "CPU_ANY_AVX2_FLAGS", |
373 | - "CPU_ANY_AVX512F_FLAGS|CpuAVX2" }, | |
373 | + "CPU_ANY_AVX512F_FLAGS|CpuAVX2|CpuAVX_VNNI" }, | |
374 | 374 | { "CPU_ANY_AVX512F_FLAGS", |
375 | 375 | "CpuAVX512F|CpuAVX512CD|CpuAVX512ER|CpuAVX512PF|CpuAVX512DQ|CPU_ANY_AVX512BW_FLAGS|CpuAVX512VL|CpuAVX512IFMA|CpuAVX512VBMI|CpuAVX512_4FMAPS|CpuAVX512_4VNNIW|CpuAVX512_VPOPCNTDQ|CpuAVX512_VBMI2|CpuAVX512_VNNI|CpuAVX512_BITALG|CpuAVX512_BF16|CpuAVX512_VP2INTERSECT" }, |
376 | 376 | { "CPU_ANY_AVX512CD_FLAGS", |
@@ -1472,7 +1472,7 @@ | ||
1472 | 1472 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, \ |
1473 | 1473 | 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, \ |
1474 | 1474 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, \ |
1475 | - 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ | |
1475 | + 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ | |
1476 | 1476 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ |
1477 | 1477 | 0, 0, 0, 0, 0 } } |
1478 | 1478 |
@@ -1481,7 +1481,7 @@ | ||
1481 | 1481 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, \ |
1482 | 1482 | 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ |
1483 | 1483 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, \ |
1484 | - 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ | |
1484 | + 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ | |
1485 | 1485 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ |
1486 | 1486 | 0, 0, 0, 0, 0 } } |
1487 | 1487 |