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

STR (register, 32-bit)

Test 1: uops

Code:

  str w0, [x6, x7]
  mov x0, 0
  mov x7, 8

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 0.000

Load/store unit issues: 1.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)031e1f223f46494f51schedule uop (52)schedule ldst uop (55)dispatch ldst uop (58)simd uops in schedulers (5a)606d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map ldst uop (7d)map ldst uop inputs (80)8283flush restart other nonspec (84)85inst all (8c)inst int store (96)inst ldst (9b)l1d tlb access (a0)l1d cache miss st (a2)a4st unit uop (a7)acafbcl1d cache miss st nonspec (c0)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? ldst retires (ed)f5f6f7f8fd
100554340315271616625100010001000224480542542355341210001000300054254211100110001000100042010022100224273116115401000544544544544543
100454240315281616125100010001000224480542542367341210001000300054254211100110001000100042010022100224273116115391000543543544544544
100454340315271616125100010001000224480542542355341010001000300054254211100110001000100042010022100224273116115401000544544544544543
100454240305271616025100010001000224480543542355341210001000300054354211100110001000100042010022100224273116115391000543543543555543
100454240315271616025100010001000224480542542355341210001000300054254211100110001000100042010022100224273116115391000543543543543543
100454240315271616125100010001000224720542543356341210001000300054254311100110001000100042010022100224273116115401000544544544544544
100454340315271616125100010001000224720542543356340010001000300054254211100110001000100042010022100224273116115391000544544543543543
100454250315271616125100010001000224720542543356341210001000300055454211100110001000100042010022100224273116115391000544544543543543
100454240315281616025100010001000224721542542355340910001000300054354311100110001000100042010022100224273116115401000543543544544588
100454340315271616125100010001000224720542543356341210001000300054254311100110001000100042010022100224273116115391000555543543543543

Test 2: throughput

Count: 8

Code:

  str w0, [x6, x7]
  str w0, [x6, x7]
  str w0, [x6, x7]
  str w0, [x6, x7]
  str w0, [x6, x7]
  str w0, [x6, x7]
  str w0, [x6, x7]
  str w0, [x6, x7]
  mov x7, 8

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)0318191e1f223f46494f51schedule 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)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map ldst uop (7d)map int uop inputs (7f)map ldst uop inputs (80)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int store (96)inst int alu (97)inst ldst (9b)9fl1d tlb access (a0)l1d cache miss st (a2)a4st unit uop (a7)l1d cache writeback (a8)acafbcl1d cache miss st nonspec (c0)branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
802054004230000846040027161629258010010080000100800075001839455149369634004940049299697300028010720080016200240048400423200411802011009910080000100800001008006034080002158000220111511821622400370800001004005240043400514004140043
8020440042299000914002716002580100100800601008000750018394551493696240051400422995972999480107200800162002400484005031995118020110099100800001008000010080000340800020880000234111511811612400390800001004004340050400414004140041
8020440040300000614002716160258010010080000100800075001839455049369624005140042299697299928010720080016200240048400503199311802011009910080000100800001008000000800620580002234111511821621400390800001004004340043400434004340051
8020440042300000014002516160258010010080000100800075001839378149369604004040042299617299948010720080016200240048400503199311802011009910080000100800001008000034080002128000220111511821621400370800001004005040041400514004340043
8020440040300000014002516160258010010080000100800075001839378149369604004040042299617299948010720080016200240048400403199511802011009910080000100800001008000000800020280002234111511811612400370800001004005040043400514004340043
80204400423000072314002501602580100100800001008000750018398871493697140042400422996173000280106200800162002400484004231993118020110099100800001008000010080000340800000280002234111511821621400370800001004005140041400504004340041
802044004230000631400351616025801001008000010080007500183945514936960400504004029968729994801072008001620024004840040319951180201100991008000010080000100800000080002028000020111511811621400370800001004004140043400514004340043
8020440042300000314003500025801001008000010080006500183945514936962400494004229961729994801072008014220024004840042319951180201100991008000010080000100800003408000200800022341115118116224003919800001004004340052400414005240050
80204400423000000040025161602580100100800001008000650018393781493696240040400502997072999480107200800162002400484005132003118020110099100800001008000010080000340800020580000234111511821622400390800001004004140041400414004140043
8020440050300000314002716002580100100800001008000750018394551493696040042400512997072999480106200800162002400484004032003118020110099100800001008000010080000340800020280002234111511811621400390800001004005140043400514004340041

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)030918191e1f22233a3f46494f51schedule 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)5f60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map ldst uop (7d)map int uop inputs (7f)map ldst uop inputs (80)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int store (96)inst int alu (97)inst ldst (9b)9fl1d tlb access (a0)l1d tlb miss (a1)l1d cache miss st (a2)a4ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)acafbcl1d cache miss st nonspec (c0)cfd0d2l1i cache miss demand (d3)d5map dispatch bubble (d6)d9dadbddfetch restart (de)e0ea? ldst retires (ed)? int retires (ef)f5f6f7f8fd
800254004230000001910140043160025800101080000108000050183942401493696240179400402997733002280010208000020240000400504004011800211091080000108000010800000340080002308000223450200004160002440039080000104005140043400414004340043
80024400403000000310040035160025800101080000108000050183942401493697140042400402997733003080010208000020240000400424005111800211091080000108000010800000340080002128000023450200002160004240037080000104005240043400524004340043
80024400423000000300140025161602580010108000010800005018394240149369604004240042300683300308011820800002024000040042400401180021109108000010800001080000034008000008108000023450200002160004240048080000104004140041400434004340043
8002440040300000631004002516002580010108000010800005018394240149369694004240040299753300308001020800002024000040040400421180021109108000010800001080000034008000005800002050200002160004240048080000104004340041400434004340043
80024400502990000300040027160025800101080000108000050183935200493696240040400502998533002280010208000020240000400494004911800211091080000108000010800000340080002028000003450200004160004240039080000104005140041400414004340052
8002440042300000210000400270002580010108000010800005018398560149369604004240051299773300228001020800002024000040040400511180021109108000010800001080000034008000202800022050200004160004240039080000104005040043400434004340051
80024400403000000310040027161602580010108000010800005018394240049369624004240040299753300228001020800002024000040042400401180021109108000010800001080000034280800000118000203450200007160003440048080000104004440041400434004340051
80024400422990000000040027161602580010108000010800005018394240149369604004240042299773300208001020800002024000040042400421180021109108000010800001080000034008000000800002050200004160004240039080000104004140041400434004140041
800244004229900009100400251600258001010800001080000501839352114936960400424004229977330031800102080000202400004004240042118002110910800001080000108000000008000053800020050200008160002440039080000104004140041400434019240043
80024400423000000900040036161602580010108000010800005018394240149369604005140042299773300228001020800002024000040050400421180021109108000010800001080000034008000202800000050200004160008440039080000104005140043400514004140041