Commit afa98e1f authored by Frank Barchard's avatar Frank Barchard Committed by Frank Barchard

HammingDistance_SSSE3 use movd not vmovd

vmovd is an AVX instruction.  This will crash on an older CPU with
only SSSE3 but not AVX.  Use movd instead.

Bug: libyuv:753
Test: ~/intelsde/sde -mrm -- out/Release/libyuv_unittest --gtest_filter=LibYUVCompareTest.BenchmarkHammingDistance_Opt
Change-Id: I1fb0026039d5f83d124f5d03fed7dc0d2d723e49
Reviewed-on: https://chromium-review.googlesource.com/756200Reviewed-by: 's avatarCheng Wang <wangcheng@google.com>
Reviewed-by: 's avatarrichard winterton <rrwinterton@gmail.com>
parent a0c32b9e
......@@ -160,7 +160,7 @@ uint32 HammingDistance_SSSE3(const uint8* src_a,
"pshufd $0xaa,%%xmm0,%%xmm1 \n"
"paddd %%xmm1,%%xmm0 \n"
"vmovd %%xmm0, %3 \n"
"movd %%xmm0, %3 \n"
: "+r"(src_a), // %0
"+r"(src_b), // %1
"+r"(count), // %2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment