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

STP (post-index, Q)

Test 1: uops

Code:

  stp q0, q1, [x6], #0x10
  nop ; nop ; nop ; nop ; nop ; nop ; nop

(no loop instructions)

1000 unrolls and 1 iteration

Retires (minus 7 nops): 2.000

Issues: 3.000

Integer unit issues: 1.001

Load/store unit issues: 2.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)dispatch uop (78)map ldst uop (7d)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)
90054280303110132018101420003000969330002000400010012000
900423963001100120001000200030001284930002000400010012000
900423063001100120001000200030001084530002000400010012000
900423063001100120001000200030001084530002000400010012000
900423063001100120001000200030001084530002000400010012000
900423063001100120001000200030001096130002000400010012000
900423103001100120001000200030001096130002000400010012000
900423063001100120001000200030001047730002000400010012000
900423063001100120001000200030001084530002000400010012000
900423103001100120001000200030001084530002000400010012000

Test 2: Latency 3->3

Code:

  stp q0, q1, [x6], #0x10

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 2.0155

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)dispatch uop (78)map int uop (7c)map ldst uop (7d)map int uop inputs (7f)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)? simd retires (ee)? int retires (ef)
202232249030500103112018910310200033528534153430106200200102004002010004200000100
202042011530103101032000010102200013527534130830103200200082004001610003200000100
202042011630103101032000010102200013527534127230103200200082004001610003200000100
202042011630103101032000010102200013527534127230103200200082004001610003200000100
202042011630103101032000010102200013527534127230103200200082004001610003200000100
202042011630103101032000010102200013527534127230103200200082004001610003200000100
202042011630103101032000010102200013527534127230103200200082004001610003200000100
202042011830103101032000010102200013527534129030103200200082004001610003200000100
202052020730140101232001710124200013527334154030103200200082004001610003200000100
202042014930103101032000010102200013527534138030103200200082004001610003200000100

1000 unrolls and 10 iterations

Result (median cycles for code): 2.0130

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)dispatch uop (78)map int uop (7c)map ldst uop (7d)map int uop inputs (7f)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)? int retires (ef)
20043229233041010221201891022020003350603429383001620200102040000100012000010
20024201313001110011200001001020000350413415373001020200002040000100012000010
20024201153001110011200001001020000350413412673001020200002040000100012000010
20024201153001110011200001001020000350413415373001020200002040000100012000010
20024201303001110011200001001020000350413415373001020200002040000100012000010
20024201153001110011200001001020000350413415373001020200002040000100012000010
20024201153001110011200001001020000350413415373001020200002040000100012000010
20024201303001110011200001001020000350413415373001020200002040000100012000010
20024201153001110011200001001020000350413415373001020200002040000100012000010
20024201303001110011200001001020000350413412673001020200002040000100012000010

Test 3: throughput

Count: 8

Code:

  stp q0, q1, [x6], #0x10
  stp q0, q1, [x7], #0x10
  stp q0, q1, [x8], #0x10
  stp q0, q1, [x9], #0x10
  stp q0, q1, [x10], #0x10
  stp q0, q1, [x11], #0x10
  stp q0, q1, [x12], #0x10
  stp q0, q1, [x13], #0x10
  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): 2.0006

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)dispatch uop (78)map int uop (7c)map ldst uop (7d)map int uop inputs (7f)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)? int retires (ef)
1602231620792404948030516018980304160003240309272007524010620016001020032009680019160000100
1602041600582401038010316000080102160001240306272006624010320016000820032001680003160000100
1602041600492401038010316000080102160001240306272006624010320016000820032001680003160000100
1602041601742401418012316001880122160001240306272062424010320016000820032001680003160000100
1602041600792401038010316000080102160001240306272060624010320016000820032001680003160000100
1602041600792401038010316000080102160001240306272062424010320016000820032001680003160000100
1602041600792401038010316000080102160001240306272060624010320016000820032017680043160000100
1602041600792401038010316000080102160001240306272060624010320016000820032001680003160000100
1602041600812401038010316000080102160001240306272060624010320016000820032009680019160000100
1602041604372401418012316001880122160001240306272060624010320016000820032001680003160000100

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)schedule uop (52)schedule int uop (53)schedule ldst uop (55)dispatch int uop (56)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)dispatch uop (78)map int uop (7c)map ldst uop (7d)map int uop inputs (7f)map ldst uop inputs (80)? int output thing (e9)? ldst retires (ed)? int retires (ef)
1600431617962404128022316018980222160003240039272011224001620160010203200008000116000010
1600241600452400118001116000080010160000240030271999124001020160000203200008000116000010
1600241600452400118001116000080010160034240090272042824006420160048203200008000116000010
1600241600452400118001116000080010160000240030271999124001020160000203200008000116000010
1600241600452400118001116000080010160000240030271999124001020160000203200008000116000010
1600241600452400118001116000080010160000240030271999124001020160000203200008000116000010
1600251601002400508003216001880031160000240030272004524001020160000203200008000116000010
1600241600452400118001116000080010160000240030271999124001020160000203200008000116000010
1600241600452400118001116000080010160000240030271999124001020160000203200008000116000010
1600241600452400118001116000080010160000240030271999124001020160000203200168000316000010