summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2013-01-19 01:02:19 -0300
committerMichael Niedermayer <michaelni@gmx.at>2013-01-19 14:38:39 +0100
commitb6576dca997645dd09b9b6647dd502b5b8450c2a (patch)
treea7c50b3e74b16ad40622e21243ef01e7563e6a95 /configure
parent4f8b73129bb3845d9aadbf3dec3027b1136092a6 (diff)
configure: Fix Barcelona and Bulldozer compiler options with suncc
Barcelona/amdfam10 does not support SSE4 instructions. Also, Bulldozer supports AVX instructions, so use them instead. Signed-off-by: James Almer <jamrial@gmail.com> Reviewed-by: Carl Eugen Hoyos <cehoyos@ag.or.at> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 80ec740a6c..399e313366 100755
--- a/configure
+++ b/configure
@@ -2501,7 +2501,8 @@ suncc_flags(){
core2) echo -xarch=ssse3 -xchip=core2 ;;
corei7) echo -xarch=sse4_2 -xchip=nehalem ;;
corei7-avx) echo -xarch=avx -xchip=sandybridge ;;
- amdfam10|barcelona|bdver*) echo -xarch=sse4_1 ;;
+ amdfam10|barcelona) echo -xtarget=barcelona ;;
+ bdver*) echo -xarch=avx ;;
athlon-4|athlon-[mx]p) echo -xarch=ssea ;;
k8|opteron|athlon64|athlon-fx)
echo -xarch=sse2a ;;