From 3b3c7f0b81102c12a3642e1ca9031eccd0cbbcbd Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Wed, 10 Jul 2024 13:18:27 -0700 Subject: [PATCH] Change inline to __asm__ for C Bug: b/352378035 Change-Id: Ic8b451eda19255387b5712b2f12c797ddf985c45 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/5691322 Reviewed-by: Wan-Teh Chang --- util/cpuid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/cpuid.c b/util/cpuid.c index 52fb6bd99..93d95673d 100644 --- a/util/cpuid.c +++ b/util/cpuid.c @@ -73,7 +73,7 @@ int main(int argc, const char* argv[]) { // Read and print the SVE and SME vector lengths. if (has_sve) { int sve_vl; - asm(".inst 0x04bf5020 \n" // rdvl x0, #1 + __asm__(".inst 0x04bf5020 \n" // rdvl x0, #1 "mov %w[sve_vl], w0 \n" : [sve_vl] "=r"(sve_vl) // %[sve_vl] : @@ -82,7 +82,7 @@ int main(int argc, const char* argv[]) { } if (has_sme) { int sme_vl; - asm(".inst 0x04bf5820 \n" // rdsvl x0, #1 + __asm__(".inst 0x04bf5820 \n" // rdsvl x0, #1 "mov %w[sme_vl], w0 \n" : [sme_vl] "=r"(sme_vl) // %[sme_vl] :