From 64061790630b8fab97bbc8ada7f558c665e13674 Mon Sep 17 00:00:00 2001 From: George Steed Date: Tue, 19 Mar 2024 09:27:31 +0000 Subject: [PATCH] [AArch64] Add Neon DotProduct and I8MM extensions when building This should allow us to use the two extensions in the existing Neon inline assembly code for kernels like ARGBToY. Bug: libyuv:977 Change-Id: I5274b188771bcfbe927cb323f499ecb676a7c6ba Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/5383442 Reviewed-by: Frank Barchard --- BUILD.gn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index 691a033ea..32cc013f4 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -232,7 +232,9 @@ if (libyuv_use_neon) { configs += [ "//build/config/compiler:optimize_max" ] } - if (current_cpu != "arm64") { + if (current_cpu == "arm64") { + cflags = [ "-march=armv8-a+dotprod+i8mm" ] + } else { configs -= [ "//build/config/compiler:compiler_arm_fpu" ] cflags = [ "-mfpu=neon" ] }