Unable to compile project which uses asm instruction CVTSI2SD
Original Reporter info from Mantis: Eugene Kryukov
-
Reporter name:
Original Reporter info from Mantis: Eugene Kryukov
- Reporter name:
Description:
If application has asm-code (in intel mode) with CVTSI2SD instruction. FPC not be able to compile it with error: "error: invalid instruction mnemonic 'cvtsi2sdx'". This only happens on macOS, on Windows this code compiles ok with this result:
# [7] CVTSI2SD xmm1,RAX
cvtsi2sd %rax,%xmm1
Steps to reproduce:
Just try to compile project with this code:
{$asmmode intel}
procedure Test; assembler;
asm
CVTSI2SD xmm1,RAX
end;
Tested on i386 and x64 compiler.
Additional information:
Free Pascal Compiler version 3.1.1 [2017/02/28] for i386
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Darwin for i386
&LtPos;stdin>:24:2: error: invalid instruction mnemonic 'cvtsi2sdx'
cvtsi2sdx %eax,%xmm1
^~~~~~~~~
Free Pascal Compiler version 3.1.1 [2017/02/13] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
&LtPos;stdin>:24:2: error: invalid instruction mnemonic 'cvtsi2sdx'
cvtsi2sdx %rax,%xmm1
^~~~~~~~~
(1002) Target OS: Darwin for x86_64
Mantis conversion info:
- Mantis ID: 31550
- OS: macOS
- OS Build: 10.x
- Platform: Darwin
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 35626 (#2357ca1f)