aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean McGovern <gseanmcg@gmail.com>2012-11-25 01:32:57 -0500
committerDiego Biurrun <diego@biurrun.de>2012-11-25 14:15:30 +0100
commitf2ce813e37600d9715e9afaf30a0965ebb210e9f (patch)
tree383425c1ef46359ef89f6d0e72b0ed3d9f3043dc
parentddb009425cdf724a67d5c0932f5287414f464ef8 (diff)
downloadffmpeg-f2ce813e37600d9715e9afaf30a0965ebb210e9f.tar.gz
configure: suncc: Add compiler arch support for Nehalem & Sandy Bridge
GCC does not appear to have a -march= string for Westmere, which is a bit surprising as it has a few more instructions than a Nehalem, but a few less than a Sandy Bridge. Signed-off-by: Diego Biurrun <diego@biurrun.de>
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index 6d9ed503cb..eb6986a83c 100755
--- a/configure
+++ b/configure
@@ -2182,6 +2182,8 @@ suncc_flags(){
prescott|nocona) echo -xarch=sse3 -xchip=pentium4 ;;
*-sse3) echo -xarch=sse3 ;;
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 ;;
athlon-4|athlon-[mx]p) echo -xarch=ssea ;;
k8|opteron|athlon64|athlon-fx)
@@ -2655,7 +2657,7 @@ elif enabled x86; then
disable cmov
;;
# targets that do support conditional mov (cmov)
- i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64*|k8*|opteron*|athlon-fx|core2|amdfam10|barcelona|atom|bdver*)
+ i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64*|k8*|opteron*|athlon-fx|core2|corei7*|amdfam10|barcelona|atom|bdver*)
cpuflags="-march=$cpu"
enable cmov
enable fast_cmov