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, 4H)

Test 1: uops

Code:

  st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [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)
6600729765701510034008200410024008200030002125619502700020004000500010000100120004000
6600429647700110014000200010004000200030002125619502700020004000500010000100120004000
6600429649700110014000200010004000200030002125619502700020004000500010000100120004000
6600429636700110014000200010004000200030002125619502700020004000500010000100120004000
6600429634700110014000200010004000200030002125619502700020004000500010000100120004000
6600429647700110014000200010004000200030002125619502700020004000500010000100120004000
6600429648700110014000200010004000200030002125619502700020004000500010000100120004000
6600429632700110014000200010004000200030002125619502700020004000500010000100120004000
6600429634700110014000200010004000200030002125619502700020004000500010000100120004000
6600429634700110014000200010004000200030002125719502700020004000500510010100220004000

Test 2: throughput

Count: 8

Code:

  st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6], x8
  st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6], x8
  st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6], x8
  st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6], x8
  st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6], x8
  st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6], x8
  st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [x6], x8
  st4 { v0.4h, v1.4h, v2.4h, v3.4h }, [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)
48020716014756022980123320088160018801233200941600072403091759942160007156012420016000732001520040001780003780003160000320000100
48020416005356011680103320008160005801033200141600402403561760264160038056023920016004032008220040001780003780003160000320000100
48020416004156011180103320008160000801033200141600072403091759941160007156012420016000732001520040001780003780003160000320000100
48020416004156011180103320008160000801033200141600072403091759941160007156012420016000732001520040001780003780003160000320000100
48020416005356011180103320008160000801033200141600072403091759941160007156012420016000732001520040001780003780003160000320000100
48020516008756020580118320064160023801193200801600072403091759941160007156012420016000732001520040001780003780003160000320000100
48020416004156011180103320008160000801033200141600072403091759941160007156012420016000732001520040001780003780003160000320000100
48020416004156011180103320008160000801033200141600072403091759941160007156012420016000732001520040001780003780003160000320000100
48020416004156011180103320008160000801033200141600072403091759941160007156012420016000732001520040001780003780003160000320000100
48020516008756020580118320064160023801193200801600072403091759941160007156012420016000732001520040001780003780003160000320000100

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)
48002716054056013980033320088160018800333200941600362400901803493160040056014620160040320080204000008000008000116000032000010
48002416004756001180011320000160000800103200001600002400302719926160000056001020160000320000204000008000008000116000032000010
48002416004756001180011320000160000800103200001600002400302719926160000056001020160000320000204000008000008000116000032000010
48002416004756001180011320000160000800103200001600002400302719926160000056001020160000320000204000008000008000116000032000010
48002516012356013880033320087160018800333200941600002400302719926160000056001020160000320000204000008000008000116000032000010
48002416004756001180011320000160000800103200001600002400302719926160000056001020160000320000204000008000008000116000032000010
48002416004756001180011320000160000800103200001600002400302719926160000056001020160000320000204000008000008000116000032000010
48002416004756001180011320000160000800103200001600002400302719926160000056001020160000320000204001178002378002316000032000010
48002416004756001180011320000160000800103200001600002400302719926160000056001020160000320000204000008000008000116000032000010
48002416004756001180011320000160000800103200001600002400302719926160000056001020160000320000204000008000008000116000032000010