divpd unrecognized opcode lazarus / 64-FPC development ---------------------------------------------------------------------- mikerabat · 2014-07-01 19:33 I was trying to translate my matrix asm library to FPC (64bit windows) and stumbled over the following error: unrecognized opcode divpd To show the problem I tried a simple (and not working ) program which does not compile in Lazarus 1.2.0 to 1.2.4 Code: [Select]{$ASMMODE Intel} function TestDivp(d1, d2 : double) : double; begin   asm      divdp xmm0, [r9 + rax - 128]; // unrecognized opcode   end; end;  I already posted a similar question on Stackoverflow and got the hint that the divpc opcode is actually recognized by FPC 2.6.2 Has anyone an idea? ---------------------------------------------------------------------- v.denis · 2014-07-01 22:02 I guess you mean DIVPD xmm xmm/m128 (sse2)   Divide Packed Double-FP Values for example check reference http://ref.x86asm.net/coder64.html ---------------------------------------------------------------------- mikerabat · 2014-07-02 08:07 Yes - I just gave the simple example in code which raises an error in a simple console Lazarus project. ---------------------------------------------------------------------- Mike.Cornflake · 2014-07-02 08:54 I think @denis was referring to the fact that you're talking about divpd, but in your code you're calling divdp (ie last two letters crossed). ---------------------------------------------------------------------- mikerabat · 2014-07-02 09:53 Thank you for the extrem valuable hint!!! Yes it is a typo and it seems that this type is on my code and was NOT recognized by the Delphi compiler but by the FPC compiler (eventually this code was not used in my unit testing project)! I was just missing the forest for the trees..... ---------------------------------------------------------------------- Mike.Cornflake · 2014-07-02 10:50 QuoteI was just missing the forest for the trees..... I've been there.  :-)   Glad it's sorted.