Basically what the question says, if I execute a MOVSD that isn’t 8-byte (or even 4-byte) aligned on various CPUs, what happens? Does it have a performance impact, can it segfault, etc.?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From Volume 1 of the Intel Spec, Section 4.1
Under “normal” circumstances, an unalgined movsd will require 2 cycles to complete.
If you turn on alignment checking (in EFLAGS) then the CPU will raise an AC signal. It’s primarily meant as a way to help you detect unaligned accesses.