Re: [fpc-devel] vmul commutative optimization?

2019-11-17 Thread Florian Klämpfl
Am 17.11.19 um 16:46 schrieb Marco van de Voort: Op 2019-11-17 om 15:49 schreef Florian Klämpfl: This was an easy one :) Fixed in r43509 Thanks, here is an harder one: https://bugs.freepascal.org/view.php?id=36324 (  :-) ) Yes, FPC cannot keep record elements in registers. I have a

Re: [fpc-devel] vmul commutative optimization?

2019-11-17 Thread Marco van de Voort
Op 2019-11-17 om 15:49 schreef Florian Klämpfl: This was an easy one :) Fixed in r43509 Thanks, here is an harder one: https://bugs.freepascal.org/view.php?id=36324 (  :-) ) ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] vmul commutative optimization?

2019-11-17 Thread Florian Klämpfl
Am 12.11.19 um 13:22 schrieb Marco van de Voort: I compiled some bits with avx, and noticed that when you do asingle:=someconstant*othersingle; then that generates something like     vmovss    TC_$FFTS_$$_C31(%rip),%xmm2     vmulss    %xmm0,%xmm2,%xmm0 while if you do