[fpc-devel] AVX 512 - Can't compile vaddps zmm1, zmm2, zmm3

Joao Schuler jp at schulers.com
Sun Jun 17 23:35:40 CEST 2018


Thank you Kit.

[VADDPS]
(Ch_Wop3, Ch_Rop2, Ch_Rop1)
xmmreg,xmmreg,xmmrm                  \362\370\1\x58\75\120
AVX,SANDYBRIDGE
ymmreg,ymmreg,ymmrm                  \362\364\370\1\x58\75\120
AVX,SANDYBRIDGE

In regards to the opcode, what is the base (doesn't look hexa) for these
numbers? Example:

\362\364\370\  - are these 16 bits numbers (too big for bytes)?

x58 - is this 58 hexa?

As an example,

*vaddps ymm0 ymm1 ymm3*
I was expecting:

*C5F458C3*

On Mon, Jun 18, 2018 at 5:26 AM, J. Gareth Moreton <
gareth at moreton-family.com> wrote:

> The file you want is compiler/x86/x86ins.dat, which contains the syntax
> information for all of the x86-64 assembler commands.
>
> A tool that's run by "make" will then generate a number of .inc files that
> are then referenced by the source code.
>
> Gareth aka. Kit
>
>
>
> On Sun 17/06/18 20:59 , Joao Schuler jp at schulers.com sent:
>
> I can give a try to support vaddps and other instructions I need the most
> in AVX512. Where is the code (what file) for the above please?
>
> On Sun, Jun 17, 2018 at 6:30 PM, Florian Klämpfl <florian at freepascal.org>
> wrote:
>
>> Am 17.06.2018 um 06:37 schrieb Joao Schuler:
>>
>>> Hi,
>>> I started testing the AVX512 branch:
>>> https://svn.freepascal.org/svn/fpc/branches/tg74/avx512/
>>>
>>> This is the code:
>>>
>>> {$ASMMODE intel}
>>> asm
>>>      vaddps  zmm1, zmm2, zmm3
>>> end;
>>>
>>> The error message is: invalid combination of opcode and operands.
>>>
>>> The assembly code looks correct to me:
>>> http://citeseerx.ist.psu.edu/viewdoc/download;jsessionid=22E
>>> 1CA82C5506AA7E639CACEB96C72AB?doi=10.1.1.697.2949&rep=rep1&type=pdf
>>>
>>> (look at page 19 above).
>>>
>>> I'm I doing something very wrong?
>>>
>>
>> No, this is feature branch and work in progress. It is only useful to
>> check out if you want to contribute to it.
>>
>> Should I submit a bug report?
>>>
>>> Only if you submit a patch with it :)
>> _______________________________________________
>> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
>> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>>
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180618/c6609f7a/attachment.html>


More information about the fpc-devel mailing list