Re: [fpc-devel] SSE/AVX instruction encodings

2020-10-02 Thread J. Gareth Moreton via fpc-devel
\352\361\370\1\x5A\110    AVX512 In trunk is compiling correct (without compileroption -a), with -a is not correct. I check this. Torsten -Original-Nachricht- Betreff: Re: [fpc-devel] SSE/AVX instruction encodings Datum: 2020-10-01T18:04:26+0200 Von: "J. Gareth Moreto

Re: [fpc-devel] SSE/AVX instruction encodings

2020-10-02 Thread J. Gareth Moreton via fpc-devel
this. Torsten -Original-Nachricht- Betreff: Re: [fpc-devel] SSE/AVX instruction encodings Datum: 2020-10-01T18:04:26+0200 Von: "J. Gareth Moreton via fpc-devel" An: "fpc-devel@lists.freepascal.org" Hi Torsten, I've done that already actually, although only to grab the value

Re: [fpc-devel] SSE/AVX instruction encodings

2020-10-01 Thread avx512--- via fpc-devel
compileroption -a), with -a is not correct. I check this. Torsten -Original-Nachricht- Betreff: Re: [fpc-devel] SSE/AVX instruction encodings Datum: 2020-10-01T18:04:26+0200 Von: "J. Gareth Moreton via fpc-devel" An: "fpc-devel@lists.freepascal.org" Hi Torsten, I'

Re: [fpc-devel] SSE/AVX instruction encodings

2020-10-01 Thread J. Gareth Moreton via fpc-devel
reth aka. Kit P.S. If anyone can see a way to break the above code (before I submit a patch), please tell me! On 01/10/2020 15:52, avx512--- via fpc-devel wrote: Hi, look at the function "MemRefInfo(aAsmop: TAsmOp)" in "compiler/x86/aasmcpu.pas". Torsten -Original

Re: [fpc-devel] SSE/AVX instruction encodings

2020-10-01 Thread avx512--- via fpc-devel
Hi, look at the function "MemRefInfo(aAsmop: TAsmOp)" in "compiler/x86/aasmcpu.pas". Torsten -Original-Nachricht- Betreff: [fpc-devel] SSE/AVX instruction encodings Datum: 2020-10-01T13:57:05+0200 Von: "J. Gareth Moreton via fpc-devel" An: "FPC dev

[fpc-devel] SSE/AVX instruction encodings

2020-10-01 Thread J. Gareth Moreton via fpc-devel
Hi everyone, I've decided to take on https://bugs.freepascal.org/view.php?id=37785 - I've noticed that the compiler isn't too good at working out the sizes of SSE and AVX instructions.  If you look at Tx86Instruction.SetInstructionOpsize in compiler/x86/rax86.pas, it checks for individual