
22007E/0 — November 1999 | AMD Athlon™ Processor x86 Code Optimization |
Index
Numerics
3DNow!™ Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . 10, 107 3DNow! and MMX™
D
Data Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Decoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33, 133
Dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
DirectPath
Decoder. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
DirectPath Over VectorPath Instructions . . . . . . 9, 34, 219
Instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Displacements,
Division . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Replace Divides with Multiplies, Integer . . . . . . . . . 31, 77
Using 3DNow! Instructions . . . . . . . . . . . . . . . . . . .
Dynamic Memory Allocation Consideration . . . . . . . . . . . . 25
A
Address Generation Interlocks . . . . . . . . . . . . . . . . . . . . . . . 72
AMD Athlon™ Processor
Code Padding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Family. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Microarchitecture . . . . . . . . . . . . . . . . . . . . . . . . .4,
AMD Athlon™ System Bus . . . . . . . . . . . . . . . . . . . . . . . . . 139
B
Blended Code,
Branches
Align Branch Targets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Compound Branch Conditions . . . . . . . . . . . . . . . . . . . . . . 20 Dependent on Random Data . . . . . . . . . . . . . . . . . . . . 10, 57 Prediction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 Replace with Computation in 3DNow! Code . . . . . . . . . . 60
E
Event and
Execution Unit Resources. . . . . . . . . . . . . . . . . . . . . . . . . . 148
F
Far Control Transfer Instructions. . . . . . . . . . . . . . . . . . . . . 65 Fetch and Decode Pipeline Stages . . . . . . . . . . . . . . . . . . . 141 FFREEP Macro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Compare Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 Divides and Square Roots . . . . . . . . . . . . . . . . . . . . . . . . . 29 Execution Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 Optimizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 Pipeline Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 Pipeline Stages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 Subexpression Elimination . . . . . . . . . . . . . . . . . . . . . . . 103 To Integer Conversions . . . . . . . . . . . . . . . . . . . . . . . . . . 100 Variables and Expressions are Type Float . . . . . . . . . . . 13
FRNDINT Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 FSINCOS Instruction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 FXCH Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99, 103
C
C Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
G
Group I — Essential Optimizations . . . . . . . . . . . . . . . . . .
I
If Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Immediates,
Index | 237 |