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

Test 1: uops

Code:

  st4 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6]
  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

(no loop instructions)

1000 unrolls and 1 iteration

Retires (minus 60 nops): 12.000

Issues: 12.000

Integer unit issues: 0.001

Load/store unit issues: 4.000

SIMD/FP unit issues: 8.000

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch simd uop (57)dispatch ldst uop (58)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)
7200730251120251801640088016400044014400001200040008000800020000140008000
7200429955120011800040008000400044014400001200040008000800020000140008000
7200429917120011800040008000400044014400001200040008000800020000140008000
7200429916120011800040008000400044014400001200040008000800020000140008000
7200429915120011800040008000400044014400001200040008000800020000140008000
7200429923120011800040008000400044014400001200040008000800020000140008000
7200429958120011800040008000400044014400001200040008000800020000140008000
7200429934120011800040008000400044014400001200040008000800020000140008000
7200429915120011800040008000400044014400001200040008000800020000140008000
7200429917120011800040008000400044014400001200040008000800020000140008000

Test 2: throughput

Count: 8

Code:

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

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code divided by count): 4.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)
9602073201489602061016400843200211006400963200063003980770320005196011620032000664001420064001216000351320000640000100
9602043200459601051016400043200001006400103200423004857250320040096022620032004464009220064001216000351320000640000100
9602043200459601051016400043200001006400103200063005439973320005196011620032000664001420064001216000351320000640000100
9602043200459601051016400043200001006400103200423004736103320040096022620032004464009220064001216000351320000640000100
9602043200459601051016400043200001006400103200063005439973320005196011620032000664001420064001216000351320000640000100
9602043200459601051016400043200001006400103200383005440753320043096022820032004864009620064001216000351320000640000100
9602043200459601051016400043200001006400103200063005439973320005196011620032000664001420064001216000351320000640000100
9602053200939601891016400703200181006400863200063005439973320005196011620032000664001420064001216000351320000640000100
9602043200459601051016400043200001006400103200063005439973320005196011620032000664001420064001216000351320000640000100
9602053200929601871016400683200181006400843200063005439973320005196011620032000664001420064001616000401320000640000100

1000 unrolls and 10 iterations

Result (median cycles for code divided by count): 4.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)
9600283201889602161164016632003910640179320005305439979320005196002520320006640014206400001600000132000064000010
9600243200469600111164000032000010640000320000305439958320000096001020320000640000206400001600000132000064000010
9600253200919601041164007232002110640088320000305440264320008796001020320000640000206400001600000132000064000010
9600243200469600111164000032000010640000320000305439958320000096001020320000640000206400001600000132000064000010
9600253200909601021164007032002110640086320000305439958320000096001020320000640000206400001600000132000064000010
9600243200469600111164000032000010640000320000305439958320000096001020320000640000206400001600000132000064000010
9600253200909601021164007032002110640086320000305439958320000096001020320000640000206400001600000132000064000010
9600243200469600111164000032000010640000320000305439958320000096001020320000640000206400941600242132000064000010
9600243200539600111164000032000010640000320000305439958320000096001020320000640000206400001600000132000064000010
9600243200469600111164000032000010640000320000305439958320000096001020320000640000206400941600242132000064000010