Commit f7d44639 authored by mru's avatar mru

put ARM feature tests next to other CPU tests


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6360 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d2cd962f
...@@ -1004,26 +1004,6 @@ if test $mmx = "default"; then ...@@ -1004,26 +1004,6 @@ if test $mmx = "default"; then
fi fi
fi fi
# check armv5te instructions support
if test $armv5te = "default" -a $cpu = "armv4l"; then
armv5te=no
check_cc <<EOF && armv5te=yes
int main(void) {
__asm__ __volatile__ ("qadd r0, r0, r0");
}
EOF
fi
# check iwmmxt support
if test $iwmmxt = "default" -a $cpu = "armv4l"; then
iwmmxt=no
check_cc <<EOF && iwmmxt=yes
int main(void) {
__asm__ __volatile__ ("wunpckelub wr6, wr4");
}
EOF
fi
#Darwin CC versions #Darwin CC versions
needmdynamicnopic="no" needmdynamicnopic="no"
if test $targetos = Darwin; then if test $targetos = Darwin; then
...@@ -1177,6 +1157,26 @@ int main(void) { ...@@ -1177,6 +1157,26 @@ int main(void) {
EOF EOF
fi fi
# check armv5te instructions support
if test $armv5te = "default" -a $cpu = "armv4l"; then
armv5te=no
check_cc <<EOF && armv5te=yes
int main(void) {
__asm__ __volatile__ ("qadd r0, r0, r0");
}
EOF
fi
# check iwmmxt support
if test $iwmmxt = "default" -a $cpu = "armv4l"; then
iwmmxt=no
check_cc <<EOF && iwmmxt=yes
int main(void) {
__asm__ __volatile__ ("wunpckelub wr6, wr4");
}
EOF
fi
# mmi only available on mips # mmi only available on mips
if test $mmi = "default"; then if test $mmi = "default"; then
if test $cpu = "mips"; then if test $cpu = "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