]> git.sesse.net Git - x264/commitdiff
x86: Fix SIGILL in high bit-depth intra_sad_x3_4x4_sse2
authorHenrik Gramner <henrik@gramner.com>
Tue, 8 Jul 2014 19:15:32 +0000 (21:15 +0200)
committerFiona Glaser <fiona@x264.com>
Sun, 20 Jul 2014 03:52:56 +0000 (20:52 -0700)
An SSE3 instruction was used in an SSE2 function.

common/x86/sad16-a.asm

index 5b5e9c8ae8104a873d5241c7a79247d86266a28a..20028d1c760c38480b25632d9d763c37559c029a 100644 (file)
@@ -546,7 +546,12 @@ SAD_X 4, 16,  8
 
 %macro INTRA_SAD_X3_4x4 0
 cglobal intra_sad_x3_4x4, 3,3,7
+%if cpuflag(ssse3)
     movddup   m0, [r1-1*FDEC_STRIDEB]
+%else
+    movq      m0, [r1-1*FDEC_STRIDEB]
+    punpcklqdq m0, m0
+%endif
     movq      m1, [r0+0*FENC_STRIDEB]
     movq      m2, [r0+2*FENC_STRIDEB]
     pshuflw   m6, m0, q1032