aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-11-22 14:18:24 -0300
committerJames Almer <jamrial@gmail.com>2023-11-22 14:18:42 -0300
commit2d9fd814d0b017fef1b9d4445174bcd4dc3358dd (patch)
tree41374bd3c2f8a2f8a31fba744b37a7786e31004b
parent3c154e8579ca4c1d68d184b3d5e77921fd0d701e (diff)
downloadffmpeg-2d9fd814d0b017fef1b9d4445174bcd4dc3358dd.tar.gz
x86/: clear the high bits for order in scalarproduct_and_madd functions
Should fix checkasm failures on win64. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/x86/lossless_audiodsp.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/x86/lossless_audiodsp.asm b/libavcodec/x86/lossless_audiodsp.asm
index ff18eb7081..095f3daf33 100644
--- a/libavcodec/x86/lossless_audiodsp.asm
+++ b/libavcodec/x86/lossless_audiodsp.asm
@@ -26,7 +26,7 @@ SECTION .text
; int order, int mul)
INIT_XMM sse2
cglobal scalarproduct_and_madd_int16, 4,4,8, v1, v2, v3, order, mul
- shl orderq, 1
+ shl orderd, 1
movd m7, mulm
pshuflw m7, m7, 0
punpcklqdq m7, m7
@@ -62,7 +62,7 @@ INIT_XMM sse4
; int ff_scalarproduct_and_madd_int32(int16_t *v1, int32_t *v2, int16_t *v3,
; int order, int mul)
cglobal scalarproduct_and_madd_int32, 4,4,8, v1, v2, v3, order, mul
- shl orderq, 1
+ shl orderd, 1
movd m7, mulm
SPLATW m7, m7
pxor m6, m6
@@ -140,7 +140,7 @@ align 16
; int order, int mul)
INIT_XMM ssse3
cglobal scalarproduct_and_madd_int16, 4,5,10, v1, v2, v3, order, mul
- shl orderq, 1
+ shl orderd, 1
movd m7, mulm
pshuflw m7, m7, 0
punpcklqdq m7, m7