Free Pascal accepting MOVQ xmm, r

IamIC

Per this page, MOVQ can accept the following:

MOVQ mm, mm/m64
Move quadword from mm/m64 to mm.

MOVQ mm/m64, mm
Move quadword from mm to mm/m64.

MOVQ xmm1, xmm2/m64
Move quadword from xmm2/mem64 to xmm1.

MOVQ xmm2/m64, xmm1
Move quadword from xmm1 to xmm2/mem64.

However, my Free Pascal compiler is accepting this:

MOVQ xmm1, rcx

This is a move from a register, which is supported my MOVD, not MOVQ.

Agner Fog's instruction tables concurs with the above definition.

Why is the compiler accepting this (and it's working)?

Jester

When in doubt always consult the official reference, not some obscure web page. This is what the Intel® 64 and IA-32 Architectures Software Developer's Manual Volume 2 (2A, 2B & 2C): Instruction Set Reference, A-Z says:

66 REX.W 0F 6E /r MOVQ xmm, r/m64 SSE2 Move quadword from r/m64 to xmm.

So it's valid.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Why Free Pascal automatically pass record data to xmm registers?

From Dev

RawByteString type in Free Pascal

From Dev

Identifier not found on compiler (Free Pascal)

From Dev

Is there a delphi ScrollInView equivalent in Free Pascal?

From Dev

Identifier not found on compiler (Free Pascal)

From Dev

Passing value of JSON data to Free Pascal variable

From Dev

Checking to see if a number is within a range in free pascal

From Dev

Delphi equivalent to Free Pascal's FPC define?

From Dev

Execute Commands in the Linux Commandline [Lazarus / Free Pascal]

From Dev

Use of VARIANT* parameter in ActiveX method in Free Pascal

From Dev

Delphi equivalent to Free Pascal's FPC define?

From Dev

Checking to see if a number is within a range in free pascal

From Dev

What versions of lazarus and free pascal are stable and compatible

From Dev

Free Pascal: detect "is word char" for WideChar

From Dev

Tic Tac Toe check winner free pascal

From Dev

Free-Pascal Implementation of the Sieve of Eratosthenes

From Dev

Generic nested class function in Free Pascal

From Dev

Get Access violation when I run my pascal program, how to solve? (With free pascal)

From Dev

Alignment issue in x64 code, Free Pascal

From Dev

Why property default value does not work in free pascal?

From Dev

Why is the default function parameter getting rejected in Free Pascal?

From Dev

Memory leak in Free Pascal caused by methods with 'pointer' parameter

From Dev

When is it safe to cast UnicodeString to string in Free Pascal 3?

From Dev

How to debug, watch variable Free Pascal by Command Prompt?

From Dev

Lazarus/Free Pascal: read/write nodes with the same name using TXMLConfig

From Dev

How to eliminate Free Pascal 'not recognized' compile error on TFileStream?

From Dev

Alignment issue in x64 code, Free Pascal

From Dev

How do i edit a specific part of a text file in free pascal?

From Dev

Free Pascal / Lazarus : Why is the "FormCloseQuery" Event not called in my example?

Related Related

  1. 1

    Why Free Pascal automatically pass record data to xmm registers?

  2. 2

    RawByteString type in Free Pascal

  3. 3

    Identifier not found on compiler (Free Pascal)

  4. 4

    Is there a delphi ScrollInView equivalent in Free Pascal?

  5. 5

    Identifier not found on compiler (Free Pascal)

  6. 6

    Passing value of JSON data to Free Pascal variable

  7. 7

    Checking to see if a number is within a range in free pascal

  8. 8

    Delphi equivalent to Free Pascal's FPC define?

  9. 9

    Execute Commands in the Linux Commandline [Lazarus / Free Pascal]

  10. 10

    Use of VARIANT* parameter in ActiveX method in Free Pascal

  11. 11

    Delphi equivalent to Free Pascal's FPC define?

  12. 12

    Checking to see if a number is within a range in free pascal

  13. 13

    What versions of lazarus and free pascal are stable and compatible

  14. 14

    Free Pascal: detect "is word char" for WideChar

  15. 15

    Tic Tac Toe check winner free pascal

  16. 16

    Free-Pascal Implementation of the Sieve of Eratosthenes

  17. 17

    Generic nested class function in Free Pascal

  18. 18

    Get Access violation when I run my pascal program, how to solve? (With free pascal)

  19. 19

    Alignment issue in x64 code, Free Pascal

  20. 20

    Why property default value does not work in free pascal?

  21. 21

    Why is the default function parameter getting rejected in Free Pascal?

  22. 22

    Memory leak in Free Pascal caused by methods with 'pointer' parameter

  23. 23

    When is it safe to cast UnicodeString to string in Free Pascal 3?

  24. 24

    How to debug, watch variable Free Pascal by Command Prompt?

  25. 25

    Lazarus/Free Pascal: read/write nodes with the same name using TXMLConfig

  26. 26

    How to eliminate Free Pascal 'not recognized' compile error on TFileStream?

  27. 27

    Alignment issue in x64 code, Free Pascal

  28. 28

    How do i edit a specific part of a text file in free pascal?

  29. 29

    Free Pascal / Lazarus : Why is the "FormCloseQuery" Event not called in my example?

HotTag

Archive