4 Instruction tables - Agner Fog
4 Instruction tables - Agner Fog
4 Instruction tables - Agner Fog
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Bobcat<br />
LZCNT r,r/m 8 5 SSE4.A, AMD only<br />
SETcc r 1 1 1/2<br />
SETcc m 1 1<br />
CLC, STC 1 1/2 I0/1<br />
CMC 1 1 1/2 I0/1<br />
CLD 1 1 I0<br />
STD 2 2 I0,I1<br />
Control transfer instructions<br />
JMP short/near 1 2<br />
JMP r 1 2<br />
JMP m(near) 1 2<br />
Jcc short/near 1 1/2 - 2 recip. thrp.= 2 if jump<br />
J(E/R)CXZ short 2 1 - 2 recip. thrp.= 2 if jump<br />
LOOP short 8 4<br />
CALL near 2 2<br />
CALL r 2 2<br />
CALL m(near) 5 2<br />
RET 1 ~3<br />
RET i 4 ~4<br />
BOUND m 8 4 values are for no jump<br />
INTO 4 2 values are for no jump<br />
String instructions<br />
LODS 4 ~3<br />
REP LODS 5 ~3 values are per count<br />
STOS 4 2<br />
REP STOS 2 best case 6-7 Byte/clk<br />
MOVS 7 5<br />
REP MOVS 2 best case 5 Byte/clk<br />
SCAS 5 3<br />
REP SCAS 6 3 values are per count<br />
CMPS 7 4<br />
REP CMPS 6 3 values are per count<br />
Other<br />
NOP (90) 1 0 1/2 I0/1<br />
Long NOP (0F 1F) 1 0 1/2 I0/1<br />
PAUSE 6 6<br />
ENTER i,0 12 36<br />
ENTER a,b 10+6b 34+6b<br />
LEAVE 2 3 32 bit mode<br />
CPUID 30-52 70-830<br />
RDTSC 26 87<br />
RDPMC 14 8<br />
Floating point x87 instructions<br />
<strong>Instruction</strong> Operands Ops Latency Reciprocal Execution Notes<br />
throughput pipe<br />
Page 52