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, 16B)

Test 1: uops

Code:

  st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [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)
720073026013027100380164008100280164000300044010400001300040008000900020000100140008000
720042998413001100180004000100080004000300044001400001300040008000900020000100140008000
720042997213001100180004000100080004000300044001400001300040008000900020000100140008000
720042998013001100180004000100080004000300044010400001300040008000900020000100140008000
720042993413001100180004000100080004000300044001400001300040008000900020000100140008000
720042996713001100180004000100080004000300044001400001300040008000900020000100140008000
720042992113001100180004000100080004000300044001400001300040008000900020000100140008000
720042994213001100180004000100080004000300044001400001300040008000900020000100140008000
720042996913001100180004000100080004000300044001400001300040008000900020000100140008000
720042997313001100180004000100080004000300044001400001300040008000900020000100140008000

Test 2: throughput

Count: 8

Code:

  st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8
  st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8
  st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8
  st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8
  st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8
  st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8
  st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6], x8
  st4 { v0.16b, v1.16b, v2.16b, v3.16b }, [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)
96020732013610402168011264008632001880111640100320038240325396587732003301040217200320038640078200720105160024280012320000640000100
96020432004610401068010264000432000080101640010320006240303396557732000511040117200320006640014200720013160003580002320000640000100
96020432005010401088010264000632000080101640012320039240333512123532004611040243200320047640097200720018160004080002320000640000100
96020432005010401088010264000632000080101640012320002240303543996232000611040115200320008640016200720018160004080002320000640000100
96020432005010401088010264000632000080101640012320038240333544044932004661040244200320049640099200720018160004080002320000640000100
96020432005010401088010264000632000080101640012320002240303543996232000611040115200320008640016200720018160004080002320000640000100
96020532010710402148011264008432001880111640095320002240303543996232000611040115200320008640016200720018160004080002320000640000100
96020432005010401088010264000632000080101640012320002240303543996232000611040115200320008640016200720018160004080002320000640000100
96020532009610402158011264008232002180111640093320002240303544008841433001040117200320008640016200720018160004080002320000640000100
96020432004010401068010264000432000080101640010320002240303543996232000611040115200320008640016200720018160004080002320000640000100

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)
96002732014410401328002264009232001880021640100320036240059508957139130031040134203200416400832072000016000008000132000064000010
96002432004610400118001164000032000080010640000320000240030543995832000001040010203200006400002072000016000008000132000064000010
96002532010210401138002164007432001880021640090320000240030543995832000001040010203200006400002072000016000008000132000064000010
96002432004610400118001164000032000080010640000320000240030543995832000001040010203200006400002072000016000008000132000064000010
96002532010310401118002164007232001880021640088320000240030543995832000001040010203200006400002072000016000008000132000064000010
96002432004610400118001164000032000080010640000320000240030543995832000001040010203200006400002072000016000008000132000064000010
96002532012510401158002164007632001880021640092320000240030543995832000001040010203200006400002072000016000008000132000064000010
96002432004610400118001164000032000080010640000320000240030543995832000001040010203200006400002072000016000008000132000064000010
96002532009910401168002264007632001880021640092320000240030543995832000001040010203200006400002072000016000008000132000064000010
96002432004610400118001164000032000080010640000320000240030543995832000001040010203200006400002072000016000008000132000064000010