문제

이것을 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-e5e87e1f81e7

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top