This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [RFC PATCH, x86_64] Use -mno-sse[,2] to fall back to x87 FP argument passing convention


Roger, 

> On an Opteron 248 @ 2.21GHz
> -O3 -ffast-math -mfpmath=387		2578 MWIPS
> -O3 -ffast-math                         2213 MWIPS

Here's what I got running on an Athlon 64 @ 2200MHz with SUSE 10.0 (therefore with math routines optimized for x86-64):

-O3 -ffast-math -mfpmath=387					2593 MWIPS
-O3 -ffast-math							2895 MWIPS

-O3 -ffast-math -m32							2539 MWIPS
-O3 -ffast-math -m32 -mfpmath=sse -msse2				2029 MWIPS

These results hint at the problem lying in libm, not x87 vs. SSE: SSE math is about 12% faster on 64-bit code.

Here's a comparison between the optimized routines and those currently in GLIBC: http://sources.redhat.com/ml/libc-alpha/2006-05/msg00078.html.

I'll see if I can run RH (therefore without math routines optimized for x86-64) on the same system and get results for the same binaries tomorrow.

HTH

-- 
_______________________________________________________
Evandro Menezes               AMD            Austin, TX




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]