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: [PATCH, i386] Unify TARGET_SSE_MATH for trunc* patterns


Uros Bizjak <uros@kss-loka.si> writes:

> Hello!
>
> This patch fixes TARGET_SSE_MATH for trunc* patterns. It prevents
> generation of cvtsd2ss insn for -mfpmath=sse. Patch was bootstrapped
> on pentium4-pc-linux-gnu, regtesting is in progress for c and c++.
>
> In addition, povray-3.50c was built for various architectures
> (pentium, pentium3, pentium4) with all combinations of -mfpmath. A
> benchmark.pov picture was generated and visually checked for
> correctnes.
>
> Here are the results of generating benchmark.pov picture for -O3
> -march=pentium4 -ffast-math and various -mfpmath:
>
> pentium4 3.2G
> gcc version 4.0.0 20041217 (experimental)
> PovRay-3.50c
>
> sse:
> Time For Parse:    0 hours  0 minutes   1.0 seconds (1 seconds)
> Time For Photon:   0 hours  0 minutes  37.0 seconds (37 seconds)
> Time For Trace:    0 hours  5 minutes  31.0 seconds (331 seconds)
>     Total Time:    0 hours  6 minutes   9.0 seconds (369 seconds)
>
> 387:
> Time For Parse:    0 hours  0 minutes   1.0 seconds (1 seconds)
> Time For Photon:   0 hours  0 minutes  34.0 seconds (34 seconds)
> Time For Trace:    0 hours  5 minutes  16.0 seconds (316 seconds)
>     Total Time:    0 hours  5 minutes  51.0 seconds (351 seconds)
>
> mixed:
> Time For Parse:    0 hours  0 minutes   2.0 seconds (2 seconds)
> Time For Photon:   0 hours  0 minutes  38.0 seconds (38 seconds)
> Time For Trace:    0 hours  5 minutes  36.0 seconds (336 seconds)
>     Total Time:    0 hours  6 minutes  16.0 seconds (376 seconds)
>
> As it can be seen, mfpmath=387 now beats -mfpmath=sse by 18 seconds,
> that is ~5%. I guess this is quite good :) .

How was the number before?  Hope you didn't penalize SSE :-) 

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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