summaryrefslogtreecommitdiff
path: root/libavutil/arm
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 /libavutil/arm
parent0122118ec32087cf3522bf14a1c4e34cb7d95a67 (diff)
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 'libavutil/arm')
-rw-r--r--libavutil/arm/asm.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S
index 7b3832a28a..45e4aab77e 100644
--- a/libavutil/arm/asm.S
+++ b/libavutil/arm/asm.S
@@ -142,7 +142,7 @@ ELF .size \name, . - \name
.if \indir
ldr \rd, [pc, \rd]
.else
- add \rd, pc, \rd
+ add \rd, \rd, pc
.endif
def_pic \val - (.Lpic\@ + (8 >> CONFIG_THUMB)), .Lpicoff\@
.endm