The subtraction directly on sp is one of the operations that are
allowed in thumb mode.
---
 libavcodec/arm/vp9itxfm_neon.S | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavcodec/arm/vp9itxfm_neon.S b/libavcodec/arm/vp9itxfm_neon.S
index cdb43b5..46fd010 100644
--- a/libavcodec/arm/vp9itxfm_neon.S
+++ b/libavcodec/arm/vp9itxfm_neon.S
@@ -796,10 +796,9 @@ function ff_vp9_\txfm1\()_\txfm2\()_16x16_add_neon, 
export=1
         @ Align the stack, allocate a temp buffer
 T       mov             r12, sp
 T       bic             r12, r12, #15
-T       sub             r12, r12, #512
 T       mov             sp,  r12
 A       bic             sp,  sp,  #15
-A       sub             sp,  sp,  #512
+        sub             sp,  sp,  #512
 
         mov             r4,  r0
         mov             r5,  r1
@@ -1122,10 +1121,9 @@ function ff_vp9_idct_idct_32x32_add_neon, export=1
         @ Align the stack, allocate a temp buffer
 T       mov             r12, sp
 T       bic             r12, r12, #15
-T       sub             r12, r12, #2048
 T       mov             sp,  r12
 A       bic             sp,  sp,  #15
-A       sub             sp,  sp,  #2048
+        sub             sp,  sp,  #2048
 
         mov             r4,  r0
         mov             r5,  r1
-- 
2.7.4

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to