Domanda

Nella compilazione di questa in ml64.exe 64bit (masm64) il comando SSE mi danno un errore Che cosa devo fare per includere i comandi SSE a 64 bit?

.code

foo PROC

  movlps [rdx], xmm7 ;;error A2070: invalid instruction operands
  movhlps xmm6, xmm7
  movss [rdx+8], xmm6 ;;rror A2070: invalid instruction operands
  ret

foo ENDP

end

ottengo l'errore:

1>Performing Custom Build Step
1> Assembling: extasm.asm
1>extasm.asm(6) : error A2070: invalid instruction operands
1>extasm.asm(10) : error A2070: invalid instruction operands
1>Microsoft (R) Macro Assembler (x64) Version 8.00.50727.215
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
È stato utile?

Soluzione

Quindi modificare le due righe:

movlps QWORD PTR [RDX], xmm7

movss dword ptr [RDX + 8], xmm6

come qui: http: // sociale. msdn.microsoft.com/Forums/en-US/vcgeneral/thread/4f473acb-7b14-4bf4-bed3-e5e87e1f81e7

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top