
Software Optimization Guide for AMD64 Processors | 25112 Rev. 3.06 September 2005 |
A common case of misaligned
mov | esp, 24h |
|
|
| |
fstp | QWORD | PTR [esp] | ; ESP = | 24 | |
... |
|
| ; Store | occurs to quadword misaligned address. | |
fld | QWORD | PTR [esp] | ; | Quadword load cannot forward from quadword | |
|
|
| ; | misaligned ‘FSTP[ESP]’ store operation. | |
High-Byte Store-Buffer Data-Forwarding Restriction
If the following condition is present, there is a
Avoid the type of code shown in the following example:
mov eax, 10h |
|
|
mov [eax], bh | ; | |
... |
|
|
mov dl, [eax] | ; | Load cannot forward from |
One Supported Store-to-Load Forwarding Case
There is one case of a mismatched
movq [alignedQword], mm0
...
mov eax, [alignedQword]
Store-to-Load Forwarding—False Dependencies
A load may detect a false dependency on a
102 | Cache and Memory Optimizations | Chapter 5 |