4 Instruction tables - Agner Fog
4 Instruction tables - Agner Fog
4 Instruction tables - Agner Fog
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Nehalem<br />
Fused compare/test and branch e) 1 1 1 int 0 2<br />
J(E/R)CXZ short 2 2 x x 1 int 2<br />
LOOP short 6 6 x x x int 4<br />
LOOP(N)E short 11 11 x x x int 7<br />
CALL near 2 2 1 1 1 int 2<br />
CALL i) far 46 46 9 int 74<br />
CALL r 3 2 1 1 1 int 2<br />
CALL m(near) 4 3 1 1 1 1 int 2<br />
CALL m(far) 47 47 1 int 79<br />
RETN 1 1 1 1 int 2<br />
RETN i 3 2 1 1 int 2<br />
RETF 39 39 int 120<br />
RETF i 40 40 int 124<br />
BOUND i) r,m 15 13 2 int 7<br />
INTO i) 4 4 int 5<br />
String instructions<br />
LODS 2 1 x x x 1 int 1<br />
REP LODS 11+4n int 40+12n<br />
STOS 3 1 x x x 1 1 int 1<br />
REP STOS small n 60+n int 12+n<br />
REP STOS large n 2.5/16 bytes int 1 clk / 16 bytes<br />
MOVS 5 2 x x x 1 1 1 int 4<br />
REP MOVS small n 13+6n int 12+n<br />
REP MOVS large n 2/16 bytes int 1 clk / 16 bytes<br />
SCAS 3 2 x x x 1 int 1<br />
REP SCAS 37+6n int 40+2n<br />
CMPS 5 3 x x x 2 int 4<br />
REP CMPS 65+8n int 42+2n<br />
Other<br />
NOP (90) 1 1 x x x int 0.33<br />
Long NOP (0F 1F) 1 1 x x x int 1<br />
PAUSE 5 5 x x x int 9<br />
ENTER a,0 11 9 x x x 1 1 1 int 8<br />
ENTER a,b 34+7b int 79+5b<br />
LEAVE 3 3 1 int 5<br />
CPUID 25-100 int ~200 ~200<br />
RDTSC 22 int 24<br />
RDPMC<br />
Notes:<br />
28 int 40-60<br />
a) Applies to all addressing modes<br />
b) Has an implicit LOCK prefix.<br />
c) Low values are for small results, high values for high results.<br />
e)<br />
See manual 3: "The microarchitecture of Intel, AMD and VIA CPUs" for restrictions<br />
on macro-op fusion.<br />
i) Not available in 64 bit mode.<br />
ℓ) SSE4.2 instruction set.<br />
Page 110