[fpc-devel] x86: Efficiency of opposing CMOVs

Florian Klämpfl florian at freepascal.org
Sat Apr 16 21:03:29 CEST 2022



> Am 16.04.2022 um 12:31 schrieb Thorsten Otto via fpc-devel <fpc-devel at lists.freepascal.org>:
> 
> On Samstag, 16. April 2022 06:49:07 CEST J. Gareth Moreton via fpc-devel wrote:
> >  but I haven't been able to find an authoritive
> > source on this yet.
>  
> Did you check what for example GCC generates for similar C constructs? I don't think it uses cmov at all.
> 

Why shouldn’t it? clang does the same as my quick tests recommends: https://godbolt.org/z/eWTvfcM8E

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20220416/411b894e/attachment.htm>


More information about the fpc-devel mailing list