[libav-commits] ARM: use 2-operand syntax for ADD Rd, PC in Apple PIC code

Mans Rullgard git at libav.org
Fri Sep 21 08:08:21 CEST 2012


Module: libav
Branch: master
Commit: 8995d34972dc1092a5576c8d26e9b583f9dc2040

Author:    Mans Rullgard <mans at mansr.com>
Committer: Mans Rullgard <mans at mansr.com>
Date:      Thu Sep 20 22:55:11 2012 +0100

ARM: use 2-operand syntax for ADD Rd, PC in Apple PIC code

The Apple assembler refuses to assemble the 3-operand form
in Thumb2 even though it is valid syntax.

Signed-off-by: Mans Rullgard <mans at mansr.com>

---

 libavutil/arm/asm.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S
index b30f9b1..ce7f46d 100644
--- a/libavutil/arm/asm.S
+++ b/libavutil/arm/asm.S
@@ -143,7 +143,7 @@ ELF     .size   \name, . - \name
     .if \indir
         ldr             \rd, [pc, \rd]
     .else
-        add             \rd, \rd, pc
+        add             \rd, pc
     .endif
         def_pic         \val - (.Lpic\@ + (8 >> CONFIG_THUMB)), .Lpicoff\@
 .endm



More information about the libav-commits mailing list