Forums before death by AOL, social media and spammers... "We can't have nice things"
|    linux.debian.bugs.dist    |    Ohh some weird Debian bug report thing    |    28,835 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 27,815 of 28,835    |
|    Simon Richter to All    |
|    Bug#1127352: -mfpmath=sse    |
|    16 Feb 26 07:30:02    |
   
   From: sjr@debian.org   
      
   Hi,   
      
   I think this should be part of the same transition, as without it, gcc   
   will often prefer x87 instructions even if SSE is available, because   
   that is the cheapest way to be compatible to the 32-bit ABI.   
      
   For example:   
      
    double square(double num) {   
    return num * num;   
    }   
      
   without -mfpmath=sse becomes   
      
    square(double):   
    fld QWORD PTR [esp+4]   
    fmul st, st(0)   
    ret   
      
   even if SSE2 is available, because the return value is expected at the   
   top of the FP stack. With -mfpmath=sse, it is explicitly loaded there:   
      
    square(double):   
    sub esp, 12   
    movsd xmm0, QWORD PTR [esp+16]   
    mulsd xmm0, xmm0   
    movsd QWORD PTR [esp], xmm0   
    fld QWORD PTR [esp]   
    add esp, 12   
    ret   
      
    Simon   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca