[fpc-devel] x86_64.inc CompareByte

C Western l at c-m-w.me.uk
Mon Oct 30 19:46:09 CET 2017


On 29/10/17 22:18, Florian Klämpfl wrote:
> 
> I have committed your lastest patch with a few changes: the loop entry is aligned now to 16 bytes, I
> used movb instead of movbzl and inc instead of add. For me (Haswell CPU) this works better. I think
> also these changes are better on average.
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
> 
With this patch on x86_64 linux lazarus crashes at random places, but 
quite frequently, and CompareByte seems to be implicated. Should the 
zero exit be:

xorl    %rax, %rax

Colin



More information about the fpc-devel mailing list