25112 Rev. 3.06 September 2005

Software Optimization Guide for AMD64 Processors

4.432/64-Bit vs. 16-Bit Forms of the LEA Instruction

Optimization

Use the 32-bit or 64-bit forms of the Load Effective Address (LEA) instruction rather than the 16-bit form.

Application

This optimization applies to:

32-bit software

64-bit software

Rationale

The 32-bit and 64-bit LEA instructions are implemented as DirectPath operations with an execution latency of only two cycles. The 16-bit LEA instruction, however, is a VectorPath instruction, which lowers the decode bandwidth and has a longer execution latency.

Chapter 4

Instruction-Decoding Optimizations

77

Page 93
Image 93
AMD 250 manual 32/64-Bit vs -Bit Forms of the LEA Instruction