[fpc-devel] Testing Intel/AMD AVX-Implemenation

Torsten fckama at freenet.de
Thu May 3 22:01:07 CEST 2012


Am 03.05.2012 18:24, schrieb Florian Klämpfl:
> Am 03.05.2012 10:49, schrieb fckama at freenet.de:
>> Hi,
>>
>>
>>
>> my Intel/AMD assembler AVX 1 support is ready for testing.
>>
>>
>>
>> svn checkout http://svn.freepascal.org/svn/fpc/branches/tg74/avx ...
>>
>>
>>
>> build compiler:  ./compiler/make cycle
>>
>>
>>
>> I have testing under Linux (32/64) with internal assembler writer and
>> external assembler writer "gas"
> Do you have any test files?
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
>

Hi Florian,

i have 5 GByte testdata (64-bit). All opcode with all memory and 
register operands.

VADDPD              XMM0, XMM0, XMM0
VADDPD              XMM0, XMM0, XMM1
...
VADDPD              XMM0, XMM0, [RAX + RAX]
VADDPD              XMM0, XMM0, [RAX + RAX * 2]
VADDPD              XMM0, XMM0, [RAX + RAX * 4]
VADDPD              XMM0, XMM0, [RAX + RAX * 8]
VADDPD              XMM0, XMM0, [RAX + RAX * 2 + 16]
VADDPD              XMM0, XMM0, [RAX + RAX * 4 + 32]
VADDPD              XMM0, XMM0, [RAX + RAX * 8 + 48]
...
VADDPD              YMM15, YMM15, [R15 + R15 * 8 + 48]

= 44 MB filesize

I have also build nasm assembler -file to compile with nasm and than i 
compare the binary output with a little tool (also compare fpc internal 
assembler result with the result of external assembler "gas").


Torsten









More information about the fpc-devel mailing list