aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/arm/vp8_armv6.S
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-08-02 19:17:16 +0100
committerMans Rullgard <mans@mansr.com>2012-09-20 17:07:18 +0100
commita27a690fac6d9f42464039702f8cde6777778a53 (patch)
tree239f30a80039406ad5a41205b0fe26a92b797928 /libavcodec/arm/vp8_armv6.S
parent0122118ec32087cf3522bf14a1c4e34cb7d95a67 (diff)
downloadffmpeg-a27a690fac6d9f42464039702f8cde6777778a53.tar.gz
ARM: swap source operands in some add instructions
This allows using a 16-bit opcode when generating Thumb2 code. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/arm/vp8_armv6.S')
-rw-r--r--libavcodec/arm/vp8_armv6.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/arm/vp8_armv6.S b/libavcodec/arm/vp8_armv6.S
index 1b668bcd2a..3863dc31a5 100644
--- a/libavcodec/arm/vp8_armv6.S
+++ b/libavcodec/arm/vp8_armv6.S
@@ -88,7 +88,7 @@ function ff_decode_block_coeffs_armv6, export=1
add r4, r3, r3, lsl #5
sxth r12, r11
- add r4, r2, r4
+ add r4, r4, r2
adds r6, r6, r9
add r4, r4, #11
lsl r8, r8, r9
@@ -138,7 +138,7 @@ A orrcs r8, r8, r10, lsl r6
2:
add r4, r3, r3, lsl #5
cmp r3, #16
- add r4, r2, r4
+ add r4, r4, r2
pkhtb r11, r11, r11, asr #16
bne 0b
b 6b
@@ -226,7 +226,7 @@ A orrcs r8, r8, r10, lsl r6
ldr r1, [sp, #4]
4:
add r4, r3, r3, lsl #5
- add r4, r2, r4
+ add r4, r4, r2
add r4, r4, #22
rac_get_128 r5, r6, r7, r8, r9, r10
it ge