MOVDQA generated for unaligned address

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using Visual Studio 2005 C++ compiler, I am getting a MOVDQA(in x64 mode)
generated on an unaligned stack address. I actually have a debug screen shot
showing RSP being set correctly at the start of the function.

Here is the code:

; RSP = FFFB00 here, all numbers are in hex
mov qword ptr [rsp+18], r8
mov qword ptr [rsp+10], rdx
mov qword ptr [rsp+8], rcx
push rbx
push rbp
push rsi
push rdi
mov rax, rsp
sub rsp, 00000978
xor ebp, ebp
movdqa [rax-18], xmm6 ; exception generated here
 
Tim Lewis said:
Using Visual Studio 2005 C++ compiler, I am getting a MOVDQA(in x64 mode)
generated on an unaligned stack address. I actually have a debug screen
shot
showing RSP being set correctly at the start of the function.

You should submit bug reports through Connect:

http://connect.microsoft.com/site/sitehome.aspx?SiteID=210

I'm sure someone from the compiler team looking into the issue would need to
see the source code that resulted in the improper code generation.

Additionally, you might want to contact Product Support to see if a hotfix
is available:

http://msdn.microsoft.com/visualc/support/

-cd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top