From 5d03bf9bab5693ccf692f18b538d8d9c00387c73 Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Mon, 6 Jul 2026 15:32:01 -0700 Subject: [PATCH] vdpphps use emit to support old compilers tested with sde sde -dmr -- ../../../blaze-bin/third_party/libyuv/cpuid Kernel Version 6.18 Cpu Vendor: GenuineIntel Cpu Family 79 (0x4f), Model 1 (0x1) Has X86 0x8 Has SSE2 0x100 Has SSSE3 0x200 Has SSE4.1 0x400 Has SSE4.2 0x800 Has AVX 0x1000 Has AVX2 0x2000 Has ERMS 0x4000 Has FSMR 0x8000 Has FMA3 0x10000 Has F16C 0x20000 Has AVX512BW 0x40000 Has AVX512VL 0x80000 Has AVX512VNNI 0x100000 Has AVX512VBMI 0x200000 Has AVX512VBMI2 0x400000 Has AVX512VBITALG 0x800000 Has AVX10 0x1000000 Has AVX10_2 0x2000000 HAS AVXVNNI 0x4000000 Has AVXVNNIINT8 0x8000000 Has AMXINT8 0x10000000 Has AVX512BMM 0x0 Testing VDPPHPS instruction... Works! Bug: 531835144 Change-Id: I1f4be9a441ffc3f4c73c7d001f6b2f66b697b862 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/8048880 Reviewed-by: Wan-Teh Chang --- README.chromium | 2 +- include/libyuv/version.h | 2 +- util/cpuid.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.chromium b/README.chromium index cc424502a..f02788ca1 100644 --- a/README.chromium +++ b/README.chromium @@ -1,6 +1,6 @@ Name: libyuv URL: https://chromium.googlesource.com/libyuv/libyuv/ -Version: 1948 +Version: 1949 Revision: DEPS License: BSD-3-Clause License File: LICENSE diff --git a/include/libyuv/version.h b/include/libyuv/version.h index 9f9d18da7..7c8b5dcb2 100644 --- a/include/libyuv/version.h +++ b/include/libyuv/version.h @@ -11,6 +11,6 @@ #ifndef INCLUDE_LIBYUV_VERSION_H_ #define INCLUDE_LIBYUV_VERSION_H_ -#define LIBYUV_VERSION 1948 +#define LIBYUV_VERSION 1949 #endif // INCLUDE_LIBYUV_VERSION_H_ diff --git a/util/cpuid.c b/util/cpuid.c index bbaea8398..a789e061a 100644 --- a/util/cpuid.c +++ b/util/cpuid.c @@ -230,7 +230,7 @@ int main(int argc, const char* argv[]) { if (sigsetjmp(vdpphps_jmpbuf, 1) == 0) { // VDPPHPS xmm0, xmm0, xmm0 - __asm__ volatile("vdpphps %%xmm0, %%xmm0, %%xmm0" : : : "xmm0"); + __asm__ volatile(".byte 0x62, 0xf2, 0x7c, 0x08, 0x52, 0xc0" : : : "xmm0"); printf("Works!\n"); } else { printf("Crashed (SIGILL)!\n");