Revision 1839e854

View differences:

configure
78 78
  echo "  --powerpc-perf-enable    enable performance report on PPC"
79 79
  echo "                           (requires enabling PMC)"
80 80
  echo "  --disable-mmx            disable MMX usage"
81
  echo "  --disable-armv5te        disable armv5te usage"
81 82
  echo "  --disable-iwmmxt         disable iwmmxt usage"
82 83
  echo "  --disable-altivec        disable AltiVec usage"
83 84
  echo "  --disable-audio-oss      disable OSS audio support [default=no]"
......
345 346
tune="generic"
346 347
powerpc_perf="no"
347 348
mmx="default"
349
armv5te="default"
348 350
iwmmxt="default"
349 351
altivec="default"
350 352
mmi="default"
......
362 364
    fi
363 365
  ;;
364 366
  # armv4l is a subset of armv5tel
365
  armv4l|armv5tel)
367
  arm|armv4l|armv5tel)
366 368
    cpu="armv4l"
367 369
  ;;
368 370
  alpha)
......
719 721
  ;;
720 722
  --disable-mmx) mmx="no"
721 723
  ;;
724
  --disable-armv5te) armv5te="no"
725
  ;;
722 726
  --disable-iwmmxt) iwmmxt="no"
723 727
  ;;
724 728
  --disable-altivec) altivec="no"
......
999 1003
    fi
1000 1004
fi
1001 1005

  
1006
# check armv5te instructions support
1007
if test $armv5te = "default" -a $cpu = "armv4l"; then
1008
    armv5te=no
1009
    check_cc <<EOF && armv5te=yes
1010
        int main(void) {
1011
        __asm__ __volatile__ ("qadd r0, r0, r0");
1012
        }
1013
EOF
1014
fi
1015

  
1002 1016
# check iwmmxt support
1003 1017
if test $iwmmxt = "default" -a $cpu = "armv4l"; then
1004 1018
    iwmmxt=no
......
1526 1540
    echo "3DNow! Builtins  $mm3dnow"
1527 1541
fi
1528 1542
if test $cpu = "armv4l"; then
1543
    echo "ARMv5TE enabled  $armv5te"
1529 1544
    echo "IWMMXT enabled   $iwmmxt"
1530 1545
fi
1531 1546
if test $cpu = "mips"; then
......
1711 1726
  echo "TARGET_BUILTIN_3DNOW=yes" >> config.mak
1712 1727
  echo "#define HAVE_MM3DNOW 1" >> $TMPH
1713 1728
fi
1729
if test "$armv5te" = "yes" ; then
1730
  echo "TARGET_ARMV5TE=yes" >> config.mak
1731
  echo "#define HAVE_ARMV5TE 1" >> $TMPH
1732
fi
1714 1733
if test "$iwmmxt" = "yes" ; then
1715 1734
  echo "TARGET_IWMMXT=yes" >> config.mak
1716 1735
  echo "#define HAVE_IWMMXT 1" >> $TMPH
libavcodec/mpegaudiodec.c
27 27
#include "bitstream.h"
28 28
#include "dsputil.h"
29 29

  
30
/* Assume that all Intel XScale processors support armv5 edsp instructions */
31
#if defined(ARCH_ARMV4L) && defined (HAVE_IWMMXT)
32
#define ARCH_ARM5E
33
#endif
34

  
35 30
/*
36 31
 * TODO:
37 32
 *  - in low precision mode, use more 16 bit multiplies in synth filter
......
797 792
#       define MULS(ra, rb) \
798 793
            ({ int __rt; asm ("mullhw %0, %1, %2" : "=r" (__rt) : "r" (ra), "r" (rb)); __rt; })
799 794

  
800
#   elif defined(ARCH_ARM5E)
795
#   elif defined(HAVE_ARMV5TE)
801 796

  
802 797
        /* signed 16x16 -> 32 multiply add accumulate */
803 798
#       define MACS(rt, ra, rb) \

Also available in: Unified diff