Commit 1111af0f authored by diego's avatar diego

Add a proper test for VIS instruction support.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10553 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 989597a1
...@@ -657,6 +657,7 @@ ARCH_EXT_LIST=' ...@@ -657,6 +657,7 @@ ARCH_EXT_LIST='
mmi mmi
mmx mmx
ssse3 ssse3
vis
' '
HAVE_LIST=" HAVE_LIST="
...@@ -726,6 +727,7 @@ iwmmxt_deps="armv4l" ...@@ -726,6 +727,7 @@ iwmmxt_deps="armv4l"
mmi_deps="mips" mmi_deps="mips"
mmx_deps="x86" mmx_deps="x86"
ssse3_deps="x86" ssse3_deps="x86"
vis_deps="sparc"
# decoders / encoders # decoders / encoders
ac3_decoder_deps="gpl" ac3_decoder_deps="gpl"
...@@ -1491,6 +1493,13 @@ int main(void) { ...@@ -1491,6 +1493,13 @@ int main(void) {
} }
EOF EOF
# check VIS support
enabled vis && check_cc -mcpu=ultrasparc <<EOF || disable vis
int main(void) {
__asm__ __volatile__ ("pdist %f0, %f0, %f0");
}
EOF
# --- # ---
# big/little-endian test # big/little-endian test
check_cc <<EOF || die "endian test failed" check_cc <<EOF || die "endian test failed"
......
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