configure: Fix Barcelona and Bulldozer compiler options with suncc
authorJames Almer <jamrial@gmail.com>
Sat, 19 Jan 2013 04:02:19 +0000 (01:02 -0300)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 19 Jan 2013 13:38:39 +0000 (14:38 +0100)
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>
configure

index 80ec740..399e313 100755 (executable)
--- 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          ;;