From b4e806b2b9696443954de88e54ea583d705bcd24 Mon Sep 17 00:00:00 2001 From: Matthieu Castet Date: Mon, 24 Mar 2008 11:49:59 +0000 Subject: pld instruction are used in libavcodec/armv4l/dsputil_arm_s.S which can be used on armv4 that doesn't support this instruction. Futhermore pld is a nop on some armv5 processor like arm926. Detect if pld is supported and have the preprocessor remove it when it's not supported. Fixes issue 393. patch by matthieu castet, castet.matthieu free fr Originally committed as revision 12569 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure') diff --git a/configure b/configure index f96c6a2..45e5b6d 100755 --- a/configure +++ b/configure @@ -748,6 +748,7 @@ HAVE_LIST=" memalign mkstemp mlib + pld ppc64 round roundf @@ -1561,6 +1562,8 @@ int main(void) { EOF fi +# We have to check if pld is a nop and disable it. +enabled armv4l && check_asm pld '"pld [r0]"' enabled armv5te && check_asm armv5te '"qadd r0, r0, r0"' enabled armv6 && check_asm armv6 '"sadd16 r0, r0, r0"' enabled iwmmxt && check_asm iwmmxt '"wunpckelub wr6, wr4"' -- cgit v1.1