[fpc-devel] Detecting SSE and AVX compiler options

J. Gareth Moreton gareth at moreton-family.com
Sun Feb 3 23:02:00 CET 2019

 I'll see what I can put together.  Personally I'd prefer it if the source
code contained something that says "call this internal procedure" or
"insert this special node", although that would require some careful
 Gareth aka. Kit

 On Sun 03/02/19 22:05 , Florian Klämpfl florian at freepascal.org sent:
 Am 03.02.19 um 21:52 schrieb J. Gareth Moreton: 
 > It just seems highly dependent on the source code and can easily break 
 > if it's changed... and not just the Floor function, but also possibly if

 > Trunc and Frac are modified in some way.  The code does boil down to
 > instructions in SSE 4.1 and AVX, but it depends on many different nodes 
 > with an exact arrangement, and if something is changed (but still 
 > functionally equivalent), the optimisation will break. 

 Well, yes. But maybe its possible to create a reasonable test and take 
 care of most imaginable situations. 
 fpc-devel maillist - fpc-devel at lists.freepascal.org [1] 


[1] mailto:fpc-devel at lists.freepascal.org
[2] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190203/03963819/attachment.html>

More information about the fpc-devel mailing list