Commit 3f21cdd8 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'f22ebd25'

* commit 'f22ebd25':
  ppc: configure: Support ISA 2.06 and later

Conflicts:
	configure

See: ab123739 and others
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 8dcbfb73 f22ebd25
...@@ -342,6 +342,8 @@ Advanced options (experts only): ...@@ -342,6 +342,8 @@ Advanced options (experts only):
Optimization options (experts only): Optimization options (experts only):
--disable-asm disable all assembly optimizations --disable-asm disable all assembly optimizations
--disable-altivec disable AltiVec optimizations --disable-altivec disable AltiVec optimizations
--disable-vsx disable VSX optimizations
--disable-power8 disable POWER8 optimizations
--disable-amd3dnow disable 3DNow! optimizations --disable-amd3dnow disable 3DNow! optimizations
--disable-amd3dnowext disable 3DNow! extended optimizations --disable-amd3dnowext disable 3DNow! extended optimizations
--disable-mmx disable MMX optimizations --disable-mmx disable MMX optimizations
...@@ -1611,6 +1613,7 @@ ARCH_EXT_LIST_PPC=" ...@@ -1611,6 +1613,7 @@ ARCH_EXT_LIST_PPC="
altivec altivec
dcbzl dcbzl
ldbrx ldbrx
power8
ppc4xx ppc4xx
vsx vsx
" "
...@@ -2045,7 +2048,8 @@ altivec_deps="ppc" ...@@ -2045,7 +2048,8 @@ altivec_deps="ppc"
dcbzl_deps="ppc" dcbzl_deps="ppc"
ldbrx_deps="ppc" ldbrx_deps="ppc"
ppc4xx_deps="ppc" ppc4xx_deps="ppc"
vsx_deps="ppc" vsx_deps="altivec"
power8_deps="vsx"
cpunop_deps="i686" cpunop_deps="i686"
x86_64_select="i686" x86_64_select="i686"
...@@ -3997,19 +4001,28 @@ elif enabled ppc; then ...@@ -3997,19 +4001,28 @@ elif enabled ppc; then
;; ;;
g4|745*|ppc745*|powerpc745*) g4|745*|ppc745*|powerpc745*)
cpuflags="-mcpu=7450" cpuflags="-mcpu=7450"
disable vsx
;; ;;
74*|ppc74*|powerpc74*) 74*|ppc74*|powerpc74*)
cpuflags="-mcpu=7400" cpuflags="-mcpu=7400"
disable vsx
;; ;;
g5|970|ppc970|powerpc970) g5|970|ppc970|powerpc970)
cpuflags="-mcpu=970" cpuflags="-mcpu=970"
disable vsx
;; ;;
power[3-8]*) power[3-6]*)
cpuflags="-mcpu=$cpu" cpuflags="-mcpu=$cpu"
disable vsx
;;
power[7-8]*)
cpuflags="-mcpu=$cpu"
enable ldbrx
;; ;;
cell) cell)
cpuflags="-mcpu=cell" cpuflags="-mcpu=cell"
enable ldbrx enable ldbrx
disable vsx
;; ;;
e500mc) e500mc)
cpuflags="-mcpu=e500mc" cpuflags="-mcpu=e500mc"
...@@ -4788,8 +4801,14 @@ EOF ...@@ -4788,8 +4801,14 @@ EOF
fi fi
if enabled vsx; then if enabled vsx; then
check_cflags -mvsx check_cflags -mvsx &&
check_builtin vec_vsx_ld "altivec.h" "__builtin_vec_vsx_ld" || disable vsx
fi fi
if enabled power8; then
check_cpp_condition "altivec.h" "defined(_ARCH_PWR8)" || disable power8
fi
elif enabled x86; then elif enabled x86; then
check_builtin rdtsc intrin.h "__rdtsc()" check_builtin rdtsc intrin.h "__rdtsc()"
...@@ -5741,8 +5760,9 @@ if enabled mips; then ...@@ -5741,8 +5760,9 @@ if enabled mips; then
fi fi
if enabled ppc; then if enabled ppc; then
echo "AltiVec enabled ${altivec-no}" echo "AltiVec enabled ${altivec-no}"
echo "VSX enabled ${vsx-no}"
echo "POWER8 enabled ${power8-no}"
echo "PPC 4xx optimizations ${ppc4xx-no}" echo "PPC 4xx optimizations ${ppc4xx-no}"
echo "PPC VSX optimizations ${vsx-no}"
echo "dcbzl available ${dcbzl-no}" echo "dcbzl available ${dcbzl-no}"
fi fi
echo "debug symbols ${debug-no}" echo "debug symbols ${debug-no}"
......
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