Skip to content

Commit 95e7626

Browse files
authored
Add AVXVNNIINT16 detection (#144)
Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
1 parent 486f6ae commit 95e7626

File tree

3 files changed

+188
-184
lines changed

3 files changed

+188
-184
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ Exit Code 1
310310
| AVXSLOW | Indicates the CPU performs 2 128 bit operations instead of one |
311311
| AVXVNNI | AVX (VEX encoded) VNNI neural network instructions |
312312
| AVXVNNIINT8 | AVX-VNNI-INT8 instructions |
313+
| AVXVNNIINT16 | AVX-VNNI-INT16 instructions |
313314
| BHI_CTRL | Branch History Injection and Intra-mode Branch Target Injection / CVE-2022-0001, CVE-2022-0002 / INTEL-SA-00598 |
314315
| BMI1 | Bit Manipulation Instruction Set 1 |
315316
| BMI2 | Bit Manipulation Instruction Set 2 |

cpuid.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ const (
104104
AVXSLOW // Indicates the CPU performs 2 128 bit operations instead of one
105105
AVXVNNI // AVX (VEX encoded) VNNI neural network instructions
106106
AVXVNNIINT8 // AVX-VNNI-INT8 instructions
107+
AVXVNNIINT16 // AVX-VNNI-INT16 instructions
107108
BHI_CTRL // Branch History Injection and Intra-mode Branch Target Injection / CVE-2022-0001, CVE-2022-0002 / INTEL-SA-00598
108109
BMI1 // Bit Manipulation Instruction Set 1
109110
BMI2 // Bit Manipulation Instruction Set 2
@@ -1242,6 +1243,7 @@ func support() flagSet {
12421243
// CPUID.(EAX=7, ECX=1).EDX
12431244
fs.setIf(edx1&(1<<4) != 0, AVXVNNIINT8)
12441245
fs.setIf(edx1&(1<<5) != 0, AVXNECONVERT)
1246+
fs.setIf(edx1&(1<<10) != 0, AVXVNNIINT16)
12451247
fs.setIf(edx1&(1<<14) != 0, PREFETCHI)
12461248
fs.setIf(edx1&(1<<19) != 0, AVX10)
12471249
fs.setIf(edx1&(1<<21) != 0, APX_F)

0 commit comments

Comments
 (0)