aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2007-09-23 21:01:00 +0000
committerDiego Biurrun <diego@biurrun.de>2007-09-23 21:01:00 +0000
commitbd9d34a0c94ca2d54ee16afa73c1092275841e70 (patch)
treeca4ed20d85f3d283a70614b123d1a2780e3d6ca9
parentac140479276b735d583659d91885e3ab0a37dabe (diff)
downloadffmpeg-bd9d34a0c94ca2d54ee16afa73c1092275841e70.tar.gz
Add a proper test for VIS instruction support.
some help by Jan Knutar, jknutar nic fi Originally committed as revision 10553 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index d6be405e06..2fe87daee9 100755
--- a/configure
+++ b/configure
@@ -657,6 +657,7 @@ ARCH_EXT_LIST='
mmi
mmx
ssse3
+ vis
'
HAVE_LIST="
@@ -726,6 +727,7 @@ iwmmxt_deps="armv4l"
mmi_deps="mips"
mmx_deps="x86"
ssse3_deps="x86"
+vis_deps="sparc"
# decoders / encoders
ac3_decoder_deps="gpl"
@@ -1491,6 +1493,13 @@ int main(void) {
}
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
check_cc <<EOF || die "endian test failed"