AVX addition does not compile
Original Reporter info from Mantis: MageSlayer @MageSlayer
-
Reporter name: Denis Golovan
Original Reporter info from Mantis: MageSlayer @MageSlayer
- Reporter name: Denis Golovan
Description:
Hi
I am trying to use AVX inline assembler, but it fails on vaddsd instruction.
See attached project.
$ fpc -CfAVX2 -CpCOREAVX2 project1.lpr
Free Pascal Compiler version 3.1.1 [2017/07/29] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
project1.lpr(16,42) Warning: Check size of memory operand "vaddsd: memory-operand-size is 64 bits, but expected [64 bits + 8 byte offset]"
project1.lpr(15,5) Error: Asm: [vaddsd xmmreg,xmmreg,mem128] invalid combination of opcode and operands
project1.lpr(16,5) Error: Asm: [vaddsd xmmreg,xmmreg,mem128] invalid combination of opcode and operands
project1.lpr(21) Fatal: There were 2 errors compiling module, stopping
Additional information:
Tested under Linux x64.
FPC svn rev.36762
Mantis conversion info:
- Mantis ID: 32219
- Version: 3.1.1
- Fixed in version: 3.3.1
- Fixed in revision: 43307 (#fa9c7a92)