
Software Optimization Guide for AMD64 Processors | 25112 Rev. 3.06 September 2005 |
Table 13. Integer Instructions (Continued)
|
| Encoding | Decode |
|
| ||
Syntax |
|
|
| Latency | Note | ||
First | Second | ModRM | |||||
type | |||||||
|
|
| |||||
| byte | byte | byte |
|
|
| |
|
|
|
|
|
|
| |
SUB RAX, imm32 (sign extended) | 2Dh |
|
| DirectPath | 1 |
| |
|
|
|
|
|
|
| |
SUB mreg8, imm8 | 80h |
| DirectPath | 1 |
| ||
|
|
|
|
|
|
| |
SUB mem8, imm8 | 80h |
| DirectPath | 4 |
| ||
|
|
|
|
|
|
| |
SUB mreg16/32/64, imm16/32 | 81h |
| DirectPath | 1 |
| ||
|
|
|
|
|
|
| |
SUB mem16/32/64, imm16/32 | 81h |
| DirectPath | 4 |
| ||
|
|
|
|
|
|
| |
SUB mreg16/32/64, imm8 (sign extended) | 83h |
| DirectPath | 1 |
| ||
|
|
|
|
|
|
| |
SUB mem16/32/64, imm8 (sign extended) | 83h |
| DirectPath | 4 |
| ||
|
|
|
|
|
|
| |
SYSCALL | 0Fh | 05h |
| VectorPath | 27 |
| |
|
|
|
|
|
|
| |
SYSENTER | 0Fh | 34h |
| VectorPath | ~ |
| |
|
|
|
|
|
|
| |
SYSEXIT | 0Fh | 35h |
| VectorPath | ~ |
| |
|
|
|
|
|
|
| |
SYSRET | 0Fh | 07h |
| VectorPath | 35 |
| |
|
|
|
|
|
|
| |
TEST mreg8, reg8 | 84h |
| DirectPath | 1 |
| ||
|
|
|
|
|
|
| |
TEST mem8, reg8 | 84h |
| DirectPath | 4 |
| ||
|
|
|
|
|
|
| |
TEST mreg16/32/64, reg16/32/64 | 85h |
| DirectPath | 1 |
| ||
|
|
|
|
|
|
| |
TEST mem16/32/64, reg16/32/64 | 85h |
| DirectPath | 4 |
| ||
|
|
|
|
|
|
| |
TEST AL, imm8 | A8h |
|
| DirectPath | 1 |
| |
|
|
|
|
|
|
| |
TEST AX/EAX/RAX, imm16/32 | A9h |
|
| DirectPath | 1 |
| |
|
|
|
|
|
|
| |
TEST mreg8, imm8 | F6h |
| DirectPath | 1 |
| ||
|
|
|
|
|
|
| |
TEST mem8, imm8 | F6h |
| DirectPath | 4 |
| ||
|
|
|
|
|
|
| |
TEST mreg16/32/64, imm16/32 | F7h |
| DirectPath | 1 |
| ||
|
|
|
|
|
|
| |
TEST mem16/32/64, imm16/32 | F7h |
| DirectPath | 4 |
| ||
|
|
|
|
|
|
| |
VERR mreg16 | 0Fh | 00h | VectorPath | 11 |
| ||
|
|
|
|
|
|
| |
VERR mem16 | 0Fh | 00h | VectorPath | 11 |
| ||
|
|
|
|
|
|
| |
VERW mreg16 | 0Fh | 00h | VectorPath | 11 |
| ||
|
|
|
|
|
|
| |
Notes:
1. Static timing assumes a predicted branch.
2. Store operation also updates
3. The clock count, regardless of the number of shifts or rotates, as determined by CL or imm8.
4. LEA instructions have a latency of 1 when there are two source operands (as in the case of the base + index form LEA EAX, [EDX+EDI]). Forms with a scale or more than two source operands will have a latency of 2 (LEA EAX, [EBX+EBX*8]).
5. These instructions have an effective latency as shown. They map to internal NOPs that can be issued at a rate of three per cycle but do not occupy execution resources.
6. The latency of repeated string instructions can be found in “Latency of Repeated String Instructions” on page 167.
7. The first latency value is for
8. This opcode is used as a REX prefix in
300 | Instruction Latencies | Appendix C |