aboutsummaryrefslogtreecommitdiff
path: root/util.asm
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-04-16 14:52:15 +0200
committerAnton Khirnov <anton@khirnov.net>2024-04-16 16:31:30 +0200
commitbf320a3d0f5c526f0d96551681c37e20b3f44efb (patch)
tree9e6b725c583ff4ccd306066291b4c57042ba8a66 /util.asm
parentc6361b600df58ad1c20c6e45384f408543dcf5c2 (diff)
cpu: add AVX512 support
Diffstat (limited to 'util.asm')
-rw-r--r--util.asm4
1 files changed, 3 insertions, 1 deletions
diff --git a/util.asm b/util.asm
index 846ea3b..864080f 100644
--- a/util.asm
+++ b/util.asm
@@ -29,7 +29,9 @@
%error Invalid selector %3
%endif
- %if mmsize == 32 && cpuflag(avx2)
+ %if mmsize == 64 && cpuflag(avx512)
+ vbroadcastsd %1, %2
+ %elif mmsize == 32 && cpuflag(avx2)
vpermpd %1, %2, _IMM8SPLAT2B(%3)
%elif mmsize == 32 && cpuflag(avx)
shufpd %1, %2, %2, _IMM4SPLAT1B(%3 & 1)