[libyuv] Fix build with GCC

HammingDistance_AVX512VNNI clobbers k1 but lacks the
LIBYUV_TARGET_AVX512VNNI attribute that its siblings use, so GCC on
x86_64 fails with "the register 'k1' cannot be clobbered in 'asm' for
the current target".

ARGBAlphaBlendRow_SVE_SC uses "mov z25.s, #0x01010101", which the GNU
assembler rejects as an invalid replicated MOV immediate. Use the
equivalent "mov z25.b, #1", which sets the same value and is accepted
by both GNU as and LLVM.
This commit is contained in:
Andrey Volk committed 2026-11-16 21:58:33 +03:00
1 parent 13fd84b33c
commit 7f73f94c15
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -2484,7 +2484,7 @@ static inline void ARGBAlphaBlendRow_SVE_SC(const uint8_t* src_argb0,
"cntw %x[vl] \n"
"ptrue p0.b \n"
"mov z24.h, #1 \n"
"mov z25.s, #0x01010101 \n"
"mov z25.b, #1 \n"
"mov z26.s, #0x00ffffff \n"
"subs %w[width], %w[width], %w[vl], lsl #1 \n"
"b.lt 2f \n"