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 (single, B)

Test 1: uops

Code:

  st4 { v0.b, v1.b, v2.b, v3.b }[1], [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): 3.000

Issues: 3.000

Integer unit issues: 0.001

Load/store unit issues: 1.000

SIMD/FP unit issues: 2.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)
630072972030071200410022004100010502975030001000200020005000110002000
630042947130011200010002000100010501975030001000200020005000110002000
630042939230011200010002000100010501975030001000200020005000110002000
630042940830011200010002000100010501975030001000200020005000110002000
630042940130011200010002000100010501975030001000200020005005110002000
630042940730011200010002000100010501975030001000200020005000110002000
630042939130011200010002000100010501975030001000200020005000110002000
630042940230011200010002000100010501975030001000200020005000110002000
630042940230011200010002000100010501975030001000200020005000110002000
630042940630011200010002000100010501975030001000200020005000110002000

Test 2: throughput

Count: 8

Code:

  st4 { v0.b, v1.b, v2.b, v3.b }[1], [x6]
  st4 { v0.b, v1.b, v2.b, v3.b }[1], [x6]
  st4 { v0.b, v1.b, v2.b, v3.b }[1], [x6]
  st4 { v0.b, v1.b, v2.b, v3.b }[1], [x6]
  st4 { v0.b, v1.b, v2.b, v3.b }[1], [x6]
  st4 { v0.b, v1.b, v2.b, v3.b }[1], [x6]
  st4 { v0.b, v1.b, v2.b, v3.b }[1], [x6]
  st4 { v0.b, v1.b, v2.b, v3.b }[1], [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): 1.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)
240207801392401851011600668001810016007280006300120798380005124011620080006160014200160012400035180000160000100
240204800462401051011600048000010016001080005300135997980005124011520080006160014200160012400035180000160000100
240204800462401051011600048000010016001080005300135997980005124011520080006160014200160012400035180000160000100
240204800462401051011600048000010016001080005300135997980005124011520080006160014200160012400035180000160000100
240204800462401051011600048000010016001080005300135997980005124011520080006160014200160012400035180000160000100
240204800462401051011600048000010016001080005300135997980005124011520080006160014200160012400035180000160000100
240205801112401881011600668002110016007280005300135997980005124011520080006160014200160012400035180000160000100
240204800532401061011600058000010016001280005300135997980005124011520080006160014200160012400035180000160000100
240204800462401051011600048000010016001080005300135997980005124011520080006160014200160012400035180000160000100
240204800462401051011600048000010016001080005300135997980005124011520080006160014200160012400035180000160000100

1000 unrolls and 10 iterations

Result (median cycles for code divided by count): 1.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)
240028802182401781116012880039101601348000630113198380005124002620800061600142016000040000018000016000010
240024800502400111116000080000101600008000030135995680000024001020800001600002016000040000018000016000010
240024800502400111116000080000101600008000030136033499626524001020800001600002016000040000018000016000010
240024800502400111116000080000101600008000030135995680000024001020800001600002016000040000018000016000010
240024800502400111116000080000101600008000030135995680000024001020800001600002016000040000018000016000010
240024800502400111116000080000101600008000030135995680000024001020800001600002016000040000018000016000010
240024800502400111116000080000101600008000030135995680000024001020800001600002016007640019218000016000010
240024800502400111116000080000101600008000030135995680000024001020800001600002016000040000018000016000010
240024800502400111116000080000101600008000030135995980000024001020800001600002016000040000018000016000010
240024800502400111116000080000101600008000030135995680000024001020800001600002016000040000018000016000010