ref: aec5487cddeb92095d3260a79383034e09d75c50
parent: 2de858b9fcdc1b8c0db265047c5bf387fe31de3a
author: James Berry <jamesberry@google.com>
date: Thu Apr 7 11:03:49 EDT 2011
Use correct 32 bit comparisons for SAD breakout. Rax updated to eax to avoid uninitialized memory usage. Change-Id: Iedb953f104329ede2a786fc648a47f1be2f3798a
--- a/vp8/encoder/x86/sad_sse2.asm
+++ b/vp8/encoder/x86/sad_sse2.asm
@@ -112,7 +112,7 @@
x8x16sad_wmt_loop:
movq rax, mm7
- cmp rax, arg(4)
+ cmp eax, arg(4)
jg x8x16sad_wmt_early_exit
movq mm0, QWORD PTR [rsi]
@@ -173,7 +173,7 @@
x8x8sad_wmt_loop:
movq rax, mm7
- cmp rax, arg(4)
+ cmp eax, arg(4)
jg x8x8sad_wmt_early_exit
movq mm0, QWORD PTR [rsi]
@@ -282,7 +282,7 @@
x16x8sad_wmt_loop:
movq rax, mm7
- cmp rax, arg(4)
+ cmp eax, arg(4)
jg x16x8sad_wmt_early_exit
movq mm0, QWORD PTR [rsi]
--
⑨