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, 2S)

Test 1: uops

Code:

  st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [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)
6600729683701510034008200410024008200030002125619502700020004000500010000100120004000
6600429526700110014000200010004000200030002125619502700020004000500010000100120004000
6600429524700110014000200010004000200030002125619502700020004000500010000100120004000
6600429521700110014000200010004000200030002125619502700020004000500010000100120004000
6600429542700110014000200010004000200030002125619502700020004000500010000100120004000
6600429541700110014000200010004000200030002125619502700020004000500010000100120004000
6600429521700110014000200010004000200030002125619502700020004000500010000100120004000
6600529562700110014000200010004000200030002125619502700020004000500010000100120004000
6600429526700110014000200010004000200030002125619502700020004000500010000100120004000
6600429545700110014000200010004000200030002125619502700020004000500010000100120004000

Test 2: throughput

Count: 8

Code:

  st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6], x8
  st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6], x8
  st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6], x8
  st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6], x8
  st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6], x8
  st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6], x8
  st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6], x8
  st4 { v0.2s, v1.2s, v2.2s, v3.2s }, [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.0005

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)
48020816019256034880143320167160038801433201741600072403091784302160007156012420016000732001520040001780003780003160000320000100
48020416005356011680103320008160005801033200141600072403091759941160007156012420016000732001520040001780003780003160000320000100
48020416004156011180103320008160000801033200141600072403091759941160007156012420016000732001520040001780003780003160000320000100
48020416004156011180103320008160000801033200141600072403091759941160007156012420016000732001520040009980020480018160000320000100
48020416004156011180103320008160000801033200141600072403091759941160007156012420016000732001520040001780003780003160000320000100
48020416004156011180103320008160000801033200141600072403091759941160007156012420016000732001520040001780003780003160000320000100
48020416004156011180103320008160000801033200141600072403091759941160007156012420016000732001520040001780003780003160000320000100
48020416004156011180103320008160000801033200141600402403561760275160038056023920016004032008220040001780003780003160000320000100
48020416004156011180103320008160000801033200141600072403091759941160007156012420016000732001520040001780003780003160000320000100
48020416004156011180103320008160000801033200141600072403091759941160007156012420016000732001520040001780003780003160000320000100

1000 unrolls and 10 iterations

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

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)
48002716014556013980033320088160018800333200941600002400301759997160000056001020160000320000204000008000008000116000032000010
48002416003956001180011320000160000800103200001600002400301759996160000056001020160000320000204000008000008000116000032000010
48002416003956001180011320000160000800103200001600002400302656705163026656001020160000320000204005008010008010116000032000010
48002416003956001180011320000160000800103200001600002400301759996160000056001020160000320000204000008000008000116000032000010
48002416003956001180011320000160000800103200001600002400301759996160000056001020160000320000204002008004008004116000032000010
48002416161256130980231320880160198802303208801603962406901791369160719056150620160440320880204005008010008010116000032000010
48002416003956001180011320000160000800103200001600002400301759996160000056001020160000320000204000008000008000116000032000010
48002516008756011580028320064160023800293200801600002400301759996160000056001020160000320000204000008000008000116000032000010
48002416003956001180011320000160000800103200001600002400301759996160000056001020160000320000204000008000008000116000032000010
48002416003956001180011320000160000800103200001600002400301759996160000056001020160000320000204000008000008000116000032000010