[Bug target/18766] Inefficient code with -mfpmath=387,sse

2008-08-03 Thread ubizjak at gmail dot com


--- Comment #3 from ubizjak at gmail dot com  2008-08-03 16:59 ---
GNU C (GCC) version 4.4.0 20080803 (experimental) is now much smarter, several
rewrites of math ops now result in:

foobar:
pushl   %ebp
movl%esp, %ebp
fldsa
fmuls   b
fldsa+4
fmuls   b+4
faddp   %st, %st(1)
popl%ebp
ret

So, fixed for 4.4.


-- 

ubizjak at gmail dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18766



[Bug target/18766] Inefficient code with -mfpmath=387,sse

2005-10-23 Thread pinskia at gcc dot gnu dot org


--- Comment #2 from pinskia at gcc dot gnu dot org  2005-10-24 03:08 ---
What is happening is that the register allocator is selecting the return
possition for the last add which is a x87 register so it is doing the add in
x87 instead of sse which causes the rest to go bonkers.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

   Severity|normal  |minor
   Keywords||ra


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18766



[Bug target/18766] Inefficient code with -mfpmath=387,sse

2004-12-06 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-06 
21:34 ---
Confirmed.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2004-12-06 21:34:55
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18766