mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-17 23:08:35 +00:00
[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:
1 parent
13fd84b33c
commit
7f73f94c15
2 files changed
+2
-1
No files matched your search
@@ -2484,7 +2484,7 @@ static inline void ARGBAlphaBlendRow_SVE_SC(const uint8_t* src_argb0,
|
|||||||
"cntw %x[vl] \n"
|
"cntw %x[vl] \n"
|
||||||
"ptrue p0.b \n"
|
"ptrue p0.b \n"
|
||||||
"mov z24.h, #1 \n"
|
"mov z24.h, #1 \n"
|
||||||
"mov z25.s, #0x01010101 \n"
|
"mov z25.b, #1 \n"
|
||||||
"mov z26.s, #0x00ffffff \n"
|
"mov z26.s, #0x00ffffff \n"
|
||||||
"subs %w[width], %w[width], %w[vl], lsl #1 \n"
|
"subs %w[width], %w[width], %w[vl], lsl #1 \n"
|
||||||
"b.lt 2f \n"
|
"b.lt 2f \n"
|
||||||
|
|||||||
@@ -458,6 +458,7 @@ uint32_t HammingDistance_AVX512BW(const uint8_t* src_a,
|
|||||||
#ifdef HAS_HAMMINGDISTANCE_AVX512VNNI
|
#ifdef HAS_HAMMINGDISTANCE_AVX512VNNI
|
||||||
// Process 64 bytes per loop and the remainder of 1 to 63 bytes with masked
|
// Process 64 bytes per loop and the remainder of 1 to 63 bytes with masked
|
||||||
// loads that read zeros, accumulating byte popcounts with vpdpbusd.
|
// loads that read zeros, accumulating byte popcounts with vpdpbusd.
|
||||||
|
LIBYUV_TARGET_AVX512VNNI
|
||||||
uint32_t HammingDistance_AVX512VNNI(const uint8_t* src_a,
|
uint32_t HammingDistance_AVX512VNNI(const uint8_t* src_a,
|
||||||
const uint8_t* src_b,
|
const uint8_t* src_b,
|
||||||
int count) {
|
int count) {
|
||||||
|
|||||||
Reference in new issue
Block a user