Apple Microarchitecture Research by Dougall Johnson

M1/A14 P-core (Firestorm): Overview | Base Instructions | SIMD and FP Instructions
M1/A14 E-core (Icestorm):  Overview | Base Instructions | SIMD and FP Instructions

ST4 (multiple, post-index, 8B)

Test 1: uops

Code:

  st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8
  nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop
  mov x0, 0
  mov x8, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires (minus 60 nops): 6.000

Issues: 7.000

Integer unit issues: 1.001

Load/store unit issues: 2.000

SIMD/FP unit issues: 4.000

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map ldst uop (7d)map simd uop (7e)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? simd retires (ee)
6600729785701510034008200410024008200030002125619502700020004000500010000100120004000
6600429584700110014000200010004000200030002125219502700020004000500010000100120004000
6600429566700110014000200010004000200030002125219502700020004000500010000100120004000
6600429570700110014000200010004000200030002125219502700020004000500010000100120004000
6600429566700110014000200010004000200030002125219502700020004000500010000100120004000
6600429562700110014000200010004000200030002125719502700020004000500010000100120004000
6600429810700110014000200010004000200030002125219502700020004000500010000100120004000
6600430286700110014000200010004000200030002125219502700020004000500010002100120004000
6600429575700110014000200010004000200030002125219502700020004000500010000100120004000
6600429563700110014000200010004000200030002125219502700020004000500010000100120004000

Test 2: throughput

Count: 8

Code:

  st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8
  st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8
  st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8
  st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8
  st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8
  st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8
  st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8
  st4 { v0.8b, v1.8b, v2.8b, v3.8b }, [x6], x8
  mov x7, x6
  mov x8, x6
  mov x9, x6
  mov x10, x6
  mov x11, x6
  mov x12, x6
  mov x13, x6
  mov x8, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code divided by count): 2.0006

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? simd retires (ee)? int retires (ef)
48020816034756033080139320150160041801413201661600062403092719954160007156012320016000732001520040001780003780003160000320000100
48020416004756011180103320008160000801033200141600072403091999887160007156012420016000732001520040001780003780003160000320000100
48020416004756011180103320008160000801033200141600062403092719954160007156012320016000732001520040001780003780003160000320000100
48020416004756011180103320008160000801033200141600062403092719954160007156012320016000732001520040001780003780003160000320000100
48020516011156023380123320087160023801233200941600062403092719954160007156012320016000732001520040001780003780003160000320000100
48020416004756011180103320008160000801033200141600062403092719954160007156012320016000732001520040001780003780003160000320000100
48020416004756011180103320008160000801033200141600062403092719954160007156012320016000732001520040001780003780003160000320000100
48020416004756011180103320008160000801033200141600062403092719954160007156012320016000732001520040011780023780023160000320000100
48020416004756011180103320008160000801033200141600062403092719954160007156012320016000732001520040001780003780003160000320000100
48020416004756011180103320008160000801033200141600062403092719954160007156012320016000732001520040001780003780003160000320000100

1000 unrolls and 10 iterations

Result (median cycles for code divided by count): 2.0006

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)? int output thing (e9)? ldst retires (ed)? simd retires (ee)? int retires (ef)
48002716014256013980033320088160018800333200941600032400392719990160007156003020160007320015204000008000008000116000032000010
48002416004756001180011320000160000800103200001600002400302719926160000056001020160000320000204000008000008000116000032000010
48002416004756001180011320000160000800103200001600432400992316278160047156017020160047320095204000008000008000116000032000010
48002416004756001180011320000160000800103200001600002400302719926160000056001020160000320000204000008000008000116000032000010
48002416004756001180011320000160000800103200001600002400302719926160000056001020160000320000204000008000008000116000032000010
48002416004756001180011320000160000800103200001600002400302719926160000056001020160000320000204000008000008000116000032000010
48002516009956013880033320087160018800333200941600002400302720052160000056001020160000320000204000008000008000116000032000010
48002416004756001180011320000160000800103200001600002400302719926160000056001020160000320000204000008000008000116000032000010
48002416004756001180011320000160000800103200001600002400302719926160000056001020160000320000204000008000008000116000032000010
48002416004756001180011320000160000800103200001600002400302719926160000056001020160000320000204000008000008000116000032000010