Re: [fpc-devel] Plans for 2022

2022-01-11 Thread J. Gareth Moreton via fpc-devel
In regards to vectorisation, one of my first targets is the uComplex unit, which uses a record type consisting of 2 Doubles to hold a complex number and whose operator procedures are good candidates for the 'vectorcall' calling convention under Win64 (it's a little more flexible at creating vec

Re: [fpc-devel] Plans for 2022

2022-01-10 Thread J. Gareth Moreton via fpc-devel
I have a passion for games programming so this one really rings close for me.  The tricky thing is that early SSE and AVX instructions have to fill and use the entire register - it's only AVX512 that starts to allow partial filling, so things like packed 3-dimensional vectors are a little diffi

Re: [fpc-devel] Plans for 2022

2022-01-09 Thread Ryan Joseph via fpc-devel
> On Jan 9, 2022, at 2:09 PM, J. Gareth Moreton via fpc-devel > wrote: > > https://www.patreon.com/posts/60922821 Your plans are vectorization are an important gain for linear algebra and games. Could you detect things like: var a, b, c: TVec2; begin c := a + b * V2(10, 10); where th

Re: [fpc-devel] Plans for 2022

2022-01-09 Thread J. Gareth Moreton via fpc-devel
The other slight difficulty is that because I'm looking at the direct assembly langauge, I'm not always sure what Pascal code produces said assembly language.  Granted that's because I tend to dump the assembly files without the -al option, and I only tend to use the -ar option if there's some

Re: [fpc-devel] Plans for 2022

2022-01-09 Thread J. Gareth Moreton via fpc-devel
It's probably a good idea, yes.  Normally the optimisations I implement are due to me spotting something in the RTL or compiler disassembly while optimising something else, so the tests per se are in those units.  Dedicated tests, like my recently added POPCNT tests, are a good idea even if the

Re: [fpc-devel] Plans for 2022

2022-01-09 Thread Florian Klämpfl via fpc-devel
> Am 09.01.2022 um 08:09 schrieb J. Gareth Moreton via fpc-devel > : > > Some people requested a Patreon post as to my plans for 2022 with FPC, so I > was happy to oblige. Plans may change a bit though depending on what happens > in life and also what Florian's own vision is with the compile

Re: [fpc-devel] Plans for 2022

2022-01-09 Thread Christo Crause via fpc-devel
On Sun, Jan 9, 2022 at 9:09 AM J. Gareth Moreton via fpc-devel < fpc-devel@lists.freepascal.org> wrote: > Some people requested a Patreon post as to my plans for 2022 with FPC, > so I was happy to oblige. Plans may change a bit though depending on > what happens in life and also what Florian's ow

[fpc-devel] Plans for 2022

2022-01-08 Thread J. Gareth Moreton via fpc-devel
Some people requested a Patreon post as to my plans for 2022 with FPC, so I was happy to oblige.  Plans may change a bit though depending on what happens in life and also what Florian's own vision is with the compiler, but this is the gist of it: https://www.patreon.com/posts/60922821 Gareth