Pergunta

Ao compilar isso em ML64.exe 64bit (MASM64) O comando SSE me dá um erro O que preciso fazer para incluir os comandos SSE em 64 bits?

.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

Eu recebo o erro:

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"
Foi útil?

Solução

Portanto, modifique as duas linhas para:

movlps qword ptr [rdx], xmm7

movss dword ptr [rdx+8], xmm6

como aqui:http://social.msdn.microsoft.com/forums/en-us/vcgeneral/thread/4f473acb-7b14-4bf4-bed3-e5e87e1f81e7

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top