pipewire/0001-neon-use-regular-registers-only.patch
2023-07-10 12:58:04 +02:00

35 lines
1.4 KiB
Diff

From 4aa8854cb8ceaffc32f5709e544cdb4ad95d6aa3 Mon Sep 17 00:00:00 2001
From: Wim Taymans <wtaymans@redhat.com>
Date: Tue, 19 May 2020 17:44:21 +0200
Subject: [PATCH] neon: use regular registers only
---
spa/plugins/audioconvert/resample-native-neon.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/spa/plugins/audioconvert/resample-native-neon.c b/spa/plugins/audioconvert/resample-native-neon.c
index becbcbe4..97390e3d 100644
--- a/spa/plugins/audioconvert/resample-native-neon.c
+++ b/spa/plugins/audioconvert/resample-native-neon.c
@@ -80,7 +80,7 @@ static void inner_product_neon(float *d, const float * SPA_RESTRICT s,
" faddp v0.4s, v0.4s, v0.4s\n"
" faddp v0.2s, v0.2s, v0.2s\n"
" str s0, [%[d]]\n"
- : [d] "+X" (d), [s] "+X" (s), [taps] "+X" (taps),
+ : [d] "+r" (d), [s] "+r" (s), [taps] "+r" (taps),
[n_taps] "+r" (n_taps), [remainder] "+r" (remainder)
:
: "cc", "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8",
@@ -175,7 +175,7 @@ static void inner_product_ip_neon(float *d, const float * SPA_RESTRICT s,
" faddp v0.4s, v0.4s, v0.4s\n"
" faddp v0.2s, v0.2s, v0.2s\n"
" str s0, [%[d]]\n"
- : [d] "+X" (d), [s] "+X" (s), [t0] "+X" (t0), [t1] "+X" (t1),
+ : [d] "+r" (d), [s] "+r" (s), [t0] "+r" (t0), [t1] "+r" (t1),
[n_taps] "+r" (n_taps), [x] "+r" (x)
:
: "cc", "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8",
--
2.26.2