[MPlayer-dev-eng] [PATCH] full-featured gcc ppc optimization

Magnus Damm damm at opensource.se
Tue Jul 1 18:57:15 CEST 2003


Alex,

Doesn't this depend on the gcc variant/version used?
And how come we tune for 7450 on 7400/7410?
Otherwise I think it's a great idea!
And maybe we could move out the altivec-flags from 
all Makefiles into the configure script, just to clean up.

Hm... there's a typo with the 603e, see below. 60e3?

/ magnus

[snip]
+	    603e|603ev) _march='-mcpu=603e' _mcpu='-mtune=60e3' ;;
+	    604|604e|604r|604ev) _march='-mcpu=604' _mcpu='-mtune=604' ;;
+	    740|740/750|745/755) _march='-mcpu=740' _mcpu='-mtune=740' ;;
+	    750|750CX) _march='-mcpu=750' _mcpu='-mtune=750' ;;
+	    7400*|7410*) _march='-mcpu=7400' _mcpu='-mtune=7450' ;;
+	    7450*) _march='-mcpu=7450' _mcpu='-mtune=7450' ;;
[snip]

On Tue, 1 Jul 2003 18:23:25 +0200
Alex Beregszaszi <alex at fsn.hu> wrote:

> Hi,
> 
> just commited an automatic linux altivec detection support for the
> configure, and here's the next patch. It gets the ppc cpu string from
> the /proc/cpuinfo file and selects depending on that the optimization.
> It can be later extended with other-OSes support. Please test it and
> report!
> 
> Especially the switch() should be reviewed, hope I have selected always
> the best option.
> 
> -- 
> Alex Beregszaszi <alex at fsn.hu>
> (MPlayer Core Developer -- http://www.mplayerhq.hu/)
> 




More information about the MPlayer-dev-eng mailing list