Commit 4dd94315 authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

x86: don't use vptest in SSSE3 version

This is the VEX (AVX) encoded variant for the SSE4 instruction ptest,
so emulate it using pmovmskb in the SSSE3 version.
parent e308ae49
Pipeline #15519 passed with stages
in 11 minutes and 10 seconds
......@@ -5212,8 +5212,16 @@ cglobal resize, 0, 6, 8, 3 * 16, dst, dst_stride, src, src_stride, \
; if no emulation is required, we don't need to shuffle or emulate edges
; this also saves 2 quasi-vpgatherdqs
vptest m3, m3
jz .filter
pxor m6, m6
pcmpeqb m6, m3
%if ARCH_X86_64
pmovmskb r8d, m6
cmp r8d, 0xffff
pmovmskb r3d, m6
cmp r3d, 0xffff
je .filter
%if ARCH_X86_64
movd r8d, xm3
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