Hi,

attached patch should fix the test failures on ppc64el [1].

Since the altivec optimizations for ppc64el use vsx functions like vec_vsx_ld, it doesn't make sense to disable vsx if altivec is enabled on ppc64el.

I tried to test this on qemu/ppc64el, but the linker segfaulted...

Best regards,
Andreas

1: https://buildd.debian.org/status/fetch.php?pkg=ffmpeg&arch=ppc64el&ver=7%3A2.5.1-1&stamp=1418755783
>From 4765060cc6e81a75e3c57d101963631bef3eff13 Mon Sep 17 00:00:00 2001
From: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>
Date: Fri, 9 Jan 2015 17:32:09 +0100
Subject: [PATCH] configure: enable vsx together with altivec for ppc64el

The altivec optimizations on little endian ppc64 don't work without vsx.
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 51999de..2a733d4 100755
--- a/configure
+++ b/configure
@@ -4431,7 +4431,7 @@ unsigned int endian = 'B' << 24 | 'I' << 16 | 'G' << 8 | 'E';
 EOF
 od -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
 
-if  [ "$cpu" = "power7" ] || [ "$cpu" = "power8" ] ;then
+if  [ "$cpu" = "power7" ] || [ "$cpu" = "power8" ] || enabled ppc64; then
     if ! enabled bigendian && enabled altivec ;then
         enable vsx
     fi
-- 
2.1.4

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to