[x265] [PATCH 10 of 29] intra_pred_dc: fix 32-build error, invalid register used

dnyaneshwar at multicorewareinc.com dnyaneshwar at multicorewareinc.com
Tue Jan 13 08:11:18 CET 2015


# HG changeset patch
# User Dnyaneshwar G <dnyaneshwar at multicorewareinc.com>
# Date 1418905745 -19800
#      Thu Dec 18 17:59:05 2014 +0530
# Node ID b0ffbe3c3bb33eaa898f10bb3ff4086c65605565
# Parent  723d7d1622b8de39d5221f0b8ff82a2a922e7d8b
intra_pred_dc: fix 32-build error, invalid register used

diff -r 723d7d1622b8 -r b0ffbe3c3bb3 source/common/x86/intrapred8.asm
--- a/source/common/x86/intrapred8.asm	Tue Dec 16 16:44:04 2014 +0530
+++ b/source/common/x86/intrapred8.asm	Thu Dec 18 17:59:05 2014 +0530
@@ -117,9 +117,9 @@
     movzx       r4d, byte [r2 + 8]
     add         r3d, r4d
     movzx       r4d, byte [r2]
-    add         r4d, r3d
-    shr         r4d, 2
-    mov         [r0], r4b
+    add         r3d, r4d
+    shr         r3d, 2
+    mov         [r0], r3b
 
     ; filter left
     add         r0, r1
@@ -189,14 +189,14 @@
     ; filter top-left
     movzx           r5d, byte      [r3]
     add             r4d,           r5d
-    movzx           r5d, byte      [r2]
-    add             r5d,           r4d
-    shr             r5d,           2
-    mov             [r6],          r5b
+    movzx           r3d, byte      [r2]
+    add             r3d,           r4d
+    shr             r3d,           2
+    mov             [r6],          r3b
 
     ; filter left
     add             r6,            r1
-    pmovzxbw        m2,            [r3 + 1]
+    pmovzxbw        m2,            [r2 + 17]
     paddw           m2,            m1
     psraw           m2,            2
     packuswb        m2,            m2
@@ -286,14 +286,14 @@
     ; filter top-left
     movzx           r5d, byte      [r3]
     add             r4d,           r5d
-    movzx           r5d, byte      [r2]
-    add             r5d,           r4d
-    shr             r5d,           2
-    mov             [r6],          r5b
+    movzx           r3d, byte      [r2]
+    add             r3d,           r4d
+    shr             r3d,           2
+    mov             [r6],          r3b
 
     ; filter left
     add             r6,            r1
-    pmovzxbw        m2,            [r3 + 1]
+    pmovzxbw        m2,            [r2 + 33]
     paddw           m2,            m1
     psraw           m2,            2
     packuswb        m2,            m2
@@ -309,7 +309,7 @@
     lea             r6,            [r6 + r1 * 2]
     pextrb          [r6 + r1],     m2, 7
 
-    pmovzxbw        m3,            [r3 + 9]
+    pmovzxbw        m3,            [r2 + 41]
     paddw           m3,            m1
     psraw           m3,            2
     packuswb        m3,            m3


More information about the x265-devel mailing list