[MPlayer-dev-eng] [PATCH] Correctly set optimization flag for Athlon. Closes Bug #267

Zuxy Meng zuxy.meng at gmail.com
Wed Nov 30 06:13:51 CET 2005


Hi,

AMD's Family 6 CPUs come with two flavors: one that supports SSE and
one that dosen't. However, they're not easily distinguishible from
their signature (family, model and stepping). Original configure might
set -march=athlon-4 for a CPU that dosen't support SSE and causes gcc
to generate code that won't run on the target machine. The attached
patch corrects this.

BTW: Someone might wonder why it's rarely reported before. The reason
I guess is two-fold: firstly Duron with model 6 or 8 is uncommon, and
secondly gcc in most cases won't generate SSE instructions for normal
C code, unless one of -ftree-vectorize or -mfpunit=sse is specified.

--
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: athlonconfigure
Type: application/octet-stream
Size: 1256 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20051130/9649a73b/attachment.obj>


More information about the MPlayer-dev-eng mailing list