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

Test 1: uops

Code:

  st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [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): 12.000

Issues: 13.000

Integer unit issues: 1.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 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)
720073003213027100380164008100280164000300044010400001300040008000900020000100140008000
720042989913001100180004000100080004000300044001400001300040008000900020000100140008000
720042989913001100180004000100080004000300044001400001300040008000900020000100140008000
720042989113001100180004000100080004000300044001400001300040008000900020000100140008000
720042989413001100180004000100080004000300044001400001300040008000900020000100140008000
720042988813001100180004000100080004000300044001400001300040008000900020000100140008000
720042989513001100180004000100080004000300044001400001300040008000900020000100140008000
720042988813001100180004000100080004000300044001400001300040008000900020000100140008000
720042989013001100180004000100080004000300044001400001300040008000900020000100140008000
720042988313001100180004000100080004000300044001400001300040008000900020000100140008000

Test 2: throughput

Count: 8

Code:

  st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6], x8
  st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6], x8
  st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6], x8
  st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6], x8
  st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6], x8
  st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6], x8
  st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [x6], x8
  st4 { v0.2d, v1.2d, v2.2d, v3.2d }, [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): 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)
96020732014610402158011264008232002180111640096320006240303396556632000511040117200320006640014200720013160003580002320000640000100
96020432004910401088010264000432000280101640010320006240303543997332000511040117200320006640014200720105160024280011320000640000100
96020432004510401068010264000432000080101640010320006240303543997332000511040117200320006640014200720013160003580002320000640000100
96020432004510401068010264000432000080101640010320006240303543997332000511040117200320006640014200720108160024080011320000640000100
96020432004510401068010264000432000080101640010320002240303544032932000711040117200320008640016200720013160003580002320000640000100
96020432004510401068010264000432000080101640010320042240331543618332004101040239200320046640094200720013160003580002320000640000100
96020432004510401068010264000432000080101640010320006240303543997332000511040117200320006640014200720013160003580002320000640000100
96020432004510401068010264000432000080101640010320042240331530805532004101040239200320046640094200720013160003580002320000640000100
96020432004510401068010264000432000080101640010320006240303543997332000511040117200320006640014200720013160003580002320000640000100
96020432004510401068010264000432000080101640010320038240331525638832807871040239200320048640096200720013160003580002320000640000100

1000 unrolls and 10 iterations

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

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)
96002732013810401288002264008832001880021640100320042240063402234732004641040156203200476400972072000016000008000132000064000010
96002432005410400118001164000032000080010640000320000240030544010532000001040010203200006400002072000016000008000132000064000010
96002532010010401278002264008432002180021640093320000240030422410132000001040010203200006400002072000016000008000132000064000010
96002432005410400118001164000032000080010640000320000240030544010532000001040010203200006400002072000016000008000132000064000010
96002532010910401248002264008432001880021640093320000240030544010532000001040010203200006400002072000016000008000132000064000010
96002432005410400118001164000032000080010640000320000240030544010532000001040010203200006400002072000016000008000132000064000010
96002532009910401258002264008232002180021640093320000240030544010532000001040010203200006400002072000016000008000132000064000010
96002432005410400118001164000032000080010640000320000240030544010532000001040010203200006400002072000016000008000132000064000010
96002432005610400168001264000432000080011640010320000240030437610132000001040010203200006400002072000016000008000132000064000010
96002432005410400118001164000032000080010640000320042240063477282632004611040156203200476400972072000016000008000132000064000010