Commit 114870db authored by James Almer's avatar James Almer

configure: add support for new CPUs

Add new -march values for Intel and AMD CPUs introduced with GCC 5 and 6, and
improve SunCC flags accordingly.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 9bf3fdcd
...@@ -3801,11 +3801,11 @@ suncc_flags(){ ...@@ -3801,11 +3801,11 @@ suncc_flags(){
westmere) echo -xtarget=westmere ;; westmere) echo -xtarget=westmere ;;
silvermont) echo -xarch=sse4_2 ;; silvermont) echo -xarch=sse4_2 ;;
corei7-avx|sandybridge) echo -xtarget=sandybridge ;; corei7-avx|sandybridge) echo -xtarget=sandybridge ;;
core-avx*|ivybridge|haswell|broadwell) core-avx*|ivybridge|haswell|broadwell|skylake*|knl)
echo -xarch=avx ;; echo -xarch=avx ;;
amdfam10|barcelona) echo -xtarget=barcelona ;; amdfam10|barcelona) echo -xtarget=barcelona ;;
btver1) echo -xarch=amdsse4a ;; btver1) echo -xarch=amdsse4a ;;
btver2|bdver*) echo -xarch=avx ;; btver2|bdver*|znver*) echo -xarch=avx ;;
athlon-4|athlon-[mx]p) echo -xarch=ssea ;; athlon-4|athlon-[mx]p) echo -xarch=ssea ;;
k8|opteron|athlon64|athlon-fx) k8|opteron|athlon64|athlon-fx)
echo -xarch=sse2a ;; echo -xarch=sse2a ;;
...@@ -4501,7 +4501,8 @@ elif enabled x86; then ...@@ -4501,7 +4501,8 @@ elif enabled x86; then
;; ;;
# targets that do support nopl and conditional mov (cmov) # targets that do support nopl and conditional mov (cmov)
i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64*|k8*|opteron*|athlon-fx\ i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64*|k8*|opteron*|athlon-fx\
|core*|atom|bonnell|nehalem|westmere|silvermont|sandybridge|ivybridge|haswell|broadwell|amdfam10|barcelona|b[dt]ver*) |core*|atom|bonnell|nehalem|westmere|silvermont|sandybridge|ivybridge|haswell|broadwell|skylake*|knl\
|amdfam10|barcelona|b[dt]ver*|znver*)
cpuflags="-march=$cpu" cpuflags="-march=$cpu"
enable i686 enable i686
enable fast_cmov enable fast_cmov
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment