dsputil x86: use SSE float instruction instead of SSE2 integer equivalent
authorChristophe GISQUET <christophe.gisquet@gmail.com>
Wed, 21 Mar 2012 19:46:29 +0000 (20:46 +0100)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 4 Apr 2012 18:24:27 +0000 (11:24 -0700)
All the more required since the users are pure SSE functions.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/x86/dsputil_yasm.asm
libavcodec/x86/sbrdsp.asm

index da08bda..00dc18b 100644 (file)
@@ -473,7 +473,7 @@ cglobal scalarproduct_float_sse, 3,3,2, v1, v2, offset
     shufps  xmm0, xmm0, 1
     addss   xmm0, xmm1
 %if ARCH_X86_64 == 0
-    mov   r0m,  xmm0
+    movss   r0m,  xmm0
     fld     dword r0m
 %endif
     RET
index 6f66327..47cb312 100644 (file)
@@ -68,7 +68,7 @@ cglobal sbr_sum_square, 2, 3, 6
     shufps      m0, m0, 1
     addss       m0, m1
 %if ARCH_X86_64 == 0
-    mov       r0m,  m0
+    movss       r0m,  m0
     fld         dword r0m
 %endif
     RET