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

Mans Rullgard git at videolan.org
Fri Sep 21 14:48:53 CEST 2012


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Thu Sep 20 22:55:11 2012 +0100| [8995d34972dc1092a5576c8d26e9b583f9dc2040] | committer: Mans Rullgard

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>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8995d34972dc1092a5576c8d26e9b583f9dc2040
---

 libavutil/arm/asm.S |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 ffmpeg-cvslog mailing list