Commit 5f2b402b authored by mru's avatar mru

check for ARMv6 instruction set support


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7719 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 01fe934a
...@@ -117,6 +117,7 @@ show_help(){ ...@@ -117,6 +117,7 @@ show_help(){
echo " (requires enabling PMC)" echo " (requires enabling PMC)"
echo " --disable-mmx disable MMX usage" echo " --disable-mmx disable MMX usage"
echo " --disable-armv5te disable armv5te usage" echo " --disable-armv5te disable armv5te usage"
echo " --disable-armv6 disable armv6 usage"
echo " --disable-iwmmxt disable iwmmxt usage" echo " --disable-iwmmxt disable iwmmxt usage"
echo " --disable-altivec disable AltiVec usage" echo " --disable-altivec disable AltiVec usage"
echo " --disable-audio-oss disable OSS audio support [default=no]" echo " --disable-audio-oss disable OSS audio support [default=no]"
...@@ -465,6 +466,7 @@ CONFIG_LIST=' ...@@ -465,6 +466,7 @@ CONFIG_LIST='
HAVE_LIST=' HAVE_LIST='
altivec_h altivec_h
armv6
beosthreads beosthreads
byteswap_h byteswap_h
dcbzl dcbzl
...@@ -574,6 +576,7 @@ mmx="default" ...@@ -574,6 +576,7 @@ mmx="default"
cmov="no" cmov="no"
cmov_is_fast="no" cmov_is_fast="no"
armv5te="default" armv5te="default"
armv6="default"
iwmmxt="default" iwmmxt="default"
altivec="default" altivec="default"
dcbzl="no" dcbzl="no"
...@@ -963,6 +966,8 @@ for opt do ...@@ -963,6 +966,8 @@ for opt do
;; ;;
--disable-armv5te) armv5te="no" --disable-armv5te) armv5te="no"
;; ;;
--disable-armv6) armv6="no"
;;
--disable-iwmmxt) iwmmxt="no" --disable-iwmmxt) iwmmxt="no"
;; ;;
--disable-altivec) altivec="no" --disable-altivec) altivec="no"
...@@ -1449,6 +1454,14 @@ if test $armv5te = "default" -a $arch = "armv4l"; then ...@@ -1449,6 +1454,14 @@ if test $armv5te = "default" -a $arch = "armv4l"; then
EOF EOF
fi fi
if test $armv6 = "default" -a $arch = "armv4l"; then
check_cc <<EOF && armv6=yes || armv6=no
int main(void) {
__asm__ __volatile__ ("sadd16 r0, r0, r0");
}
EOF
fi
# check iwmmxt support # check iwmmxt support
if test $iwmmxt = "default" -a $arch = "armv4l"; then if test $iwmmxt = "default" -a $arch = "armv4l"; then
iwmmxt=no iwmmxt=no
...@@ -1835,6 +1848,7 @@ if test $arch = "x86_32" -o $arch = "x86_64"; then ...@@ -1835,6 +1848,7 @@ if test $arch = "x86_32" -o $arch = "x86_64"; then
fi fi
if test $arch = "armv4l"; then if test $arch = "armv4l"; then
echo "ARMv5TE enabled $armv5te" echo "ARMv5TE enabled $armv5te"
echo "ARMv6 enabled $armv6"
echo "IWMMXT enabled $iwmmxt" echo "IWMMXT enabled $iwmmxt"
fi fi
if test $arch = "mips"; then if test $arch = "mips"; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment