03.03.2013 Views

4 Instruction tables - Agner Fog

4 Instruction tables - Agner Fog

4 Instruction tables - Agner Fog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Logic<br />

AND/ANDN/OR/XORPS/<br />

PD<br />

VAND/ANDN/OR/XOR<br />

PS/PD<br />

Bulldozer<br />

x,x/m 1 2 0.5 P23 ivec<br />

y,y,y/m 2 2 1 P23 ivec<br />

Other<br />

VZEROUPPER 9 4 32 bit mode<br />

VZEROUPPER 16 5 64 bit mode<br />

VZEROALL 17 6 P2 P3 32 bit mode<br />

VZEROALL 32 10 P2 P3 64 bit mode<br />

LDMXCSR m32 1 10 4 P0 P3<br />

STMXCSR m32 2 19 19 P0 P3<br />

FXSAVE m4096 67 136 136 P0 P1 P2 P3<br />

FXRSTOR m4096 116 176 176 P0 P1 P2 P3<br />

XSAVE m 122 196 196 P0 P1 P2 P3<br />

XRSTOR m 177 250 250 P0 P1 P2 P3<br />

AMD-specific instructions<br />

<strong>Instruction</strong> Operands Ops Latency Reciprocal Execution Notes<br />

3DNow instructions<br />

throughput pipes<br />

PREFETCH/W m 1 0.5<br />

SSE4A instructions<br />

LZCNT r,r 2 2 2<br />

POPCNT r16/32,r16/32 1 4 2<br />

POPCNT r64,r64 1 4 4<br />

EXTRQ x,i,i 1 3 1 P1<br />

EXTRQ x,x 1 3 1 P1<br />

INSERTQ x,x,i,i 1 3 1 P1<br />

INSERTQ x,x 1 3 1 P1<br />

MOVNTSS/SD m,x 1 4 P3<br />

XOP instructions<br />

VFRCZSS/SD/PS/PD x,x 2 10 2 P01<br />

VFRCZSS/SD/PS/PD x,m 3 10 2 P01<br />

VPCMOV x,x,x,x/m 1 2 1 P1<br />

VPCMOV y,y,y,y/m 2 2 2 P1<br />

VPPERM x,x,x,x/m 1 2 1 P1<br />

VPCOMB/W/D/Q x,x,x/m,i 1 2 0.5 P23 latency 0 if i=6, 7<br />

VPCOMUB/W/D/Q<br />

VPHADDBW/BD/BQ/<br />

x,x,x/m,i 1 2 0.5 P23 latency 0 if i=6, 7<br />

WD/WQ/DQ<br />

VPHADDUBW/BD/BQ/<br />

x,x/m 1 2 0.5 P23<br />

WD/WQ/DQ<br />

x,x/m 1 2 0.5 P23<br />

VPHSUBBW/WD/DQ x,x/m 1 2 0.5 P23<br />

VPMACSWW/WD x,x,x/m,x 1 4 1 P0<br />

Page 47

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!