Ошибка A2070: неверные инструкции операнды в SSE MASM64
Вопрос
При составлении этого в ML64.exe 64Bit (MASM64) команда SSE дает мне ошибку Что мне нужно сделать, чтобы включить команды SSE в 64 бит?
.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
Я получаю ошибку:
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"
Решение
Так что измените две линии на:
Movlps Qword PTR [RDX], XMM7
MOVSS DWORD PTR [RDX+8], XMM6
как здесь:http://social.msdn.microsoft.com/forums/en-us/vcgeneral/thread/4f473acb-7b14-4bf4-bed3-e5a87e1f81e7
Не связан с StackOverflow