[FFmpeg-cvslog] ARM: remove check for PLD instruction

Mans Rullgard git at videolan.org
Thu Jun 30 04:44:02 CEST 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Wed Jun 29 20:59:24 2011 +0100| [a3e1f80e8ba28151ea5d84c15ecf454b8170aa13] | committer: Mans Rullgard

ARM: remove check for PLD instruction

PLD is present in ARMv5TE and later, which is checked for separately.

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

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

 configure                    |    4 ----
 libavcodec/arm/dsputil_arm.S |    7 ++-----
 2 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/configure b/configure
index a1cc59a..ca6a982 100755
--- a/configure
+++ b/configure
@@ -1093,7 +1093,6 @@ HAVE_LIST="
     memalign
     mkstemp
     mmap
-    pld
     posix_memalign
     round
     roundf
@@ -2608,9 +2607,6 @@ EOF
         warn "Compiler does not indicate floating-point ABI, guessing $fpabi."
     fi
 
-    # We have to check if pld is a nop and disable it.
-    check_asm pld '"pld [r0]"'
-
     enabled armv5te && check_asm armv5te '"qadd r0, r0, r0"'
     enabled armv6   && check_asm armv6   '"sadd16 r0, r0, r0"'
     enabled armv6t2 && check_asm armv6t2 '"movt r0, #0"'
diff --git a/libavcodec/arm/dsputil_arm.S b/libavcodec/arm/dsputil_arm.S
index eb20ad6..136551f 100644
--- a/libavcodec/arm/dsputil_arm.S
+++ b/libavcodec/arm/dsputil_arm.S
@@ -24,11 +24,6 @@
 
         preserve8
 
-#if !HAVE_PLD
-.macro pld reg
-.endm
-#endif
-
 #if HAVE_ARMV5TE
 function ff_prefetch_arm, export=1
         subs            r2,  r2,  #1
@@ -37,6 +32,8 @@ function ff_prefetch_arm, export=1
         bne             ff_prefetch_arm
         bx              lr
 endfunc
+#else
+#define pld @
 #endif
 
 .macro  ALIGN_QWORD_D shift, Rd0, Rd1, Rd2, Rd3, Rn0, Rn1, Rn2, Rn3, Rn4



More information about the ffmpeg-cvslog mailing list