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, lsl, 32-bit)

Test 1: uops

Code:

  str w0, [x6, x7, lsl #2]
  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)03l1d tlb fill (05)mmu table walk data (08)l2 tlb miss data (0b)191e1f223a3f46494f51schedule uop (52)schedule ldst uop (55)dispatch ldst uop (58)simd uops in schedulers (5a)6d6emap 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 tlb miss (a1)l1d cache miss st (a2)a4ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acafbcl1d cache miss st nonspec (c0)l1d tlb miss nonspec (c1)c2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? ldst retires (ed)f5f6f7f8fd
1005552411001521015441616525100010001000232445535573653416100010003000551558111001100010001015153602101601201002163614273116115491000559559553554553
100455241000019115441616525100010001000232475585503723418100010003000559551111001100010001014163600101600181002163614173116115541000552561559559559
100455841110017115441616525100010001000229085515583663417100010003000552559111001100010001015143602101600181002163614273116115551000561560559559559
100455241010018015371616525100010001000232445535573653416100010003000552560111001100010001014143600101601201002163614073116115551000559559559559553
100455341110017015441616725100010001000231975585513723408100010003000559552111001100010001014153601101602181002163514173116115491000559553554552551
100456041110018115431616525100010001000233165595523723410100010003000559552111001100010001014143600101601171002163514273116115491000560560553553552
100455041100019115371616525100010001000229085515583663417100010003000553557111001100010001015153601101601181002163614173116115551000550559559559559
100455841110019015441616325100010001000228605595523733410100010003000558552111001100010001015153630101601191002163614173116115471000553553552561562
100455941110018015371616525100010001000232445525613723416100010003000552558111001100010001016163402101602181002163614073116115471000553553552561562
100455941010019015441616525100010001000232925585533713410100010003000558552111001100010001016163631101600191002163614173116115491000559559559553554

Test 2: throughput

Count: 8

Code:

  str w0, [x6, x7, lsl #2]
  str w0, [x6, x7, lsl #2]
  str w0, [x6, x7, lsl #2]
  str w0, [x6, x7, lsl #2]
  str w0, [x6, x7, lsl #2]
  str w0, [x6, x7, lsl #2]
  str w0, [x6, x7, lsl #2]
  str w0, [x6, x7, lsl #2]
  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)0318191e1f22233f46494f51schedule 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)696a6d6emap 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)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acafbcl1d cache miss st nonspec (c0)branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? ldst retires (ed)? int retires (ef)f5f6f7f8fd
80205400423000003104003516165258010010080000100800075001839455493696240049400422996172999480107200800162002400484005131993118020110099100800001008000010080000340800020008000223411151180160040039800001004004340041400514004440041
8020440042300000000400351616025801001008000010080007500183945549369704004240042299597300018010720080016200240048400423199311802011009910080000100800001008000034080002102800022011151180160040039800001004005140043400434005040438
80204400423000027310400271600258010010080000100800075001839455493696240040400513002273000280107200800162002400484004231995118020110099100800001008000010080000340800020008000203411151180160040039800001004004340041400454004340043
80204400402990003104002716160258010010080000100800075001839455493696240050400422996172999480107200800162002400484004231995118020110099100800001008000010080000340800000088000223411151180160040037800001004005040053400524004340052
802044004030000031040035160291258010010080000100800065001839455493697040042400512996872999480106200800162002400484004032003118020210099100800001008000010080000340800020058000003411151180160040037800001004004340043400434004140043
8020440042300009910400271616025801001008000010080006500183945549339774004240042299617299928010720080016200240048400423199511802011009910080000100800001008000000800020008000223411151180160040039800001004004340043400514004140041
8020440042300000310400251600258010010080000100800065001839378493696240042400402995972999480107200800162002400484004231995118020110099100800001008000010080000340800024028000023411151180160040037800001004004340043400434004340043
8020440049300000010400251600258010010080000100800075001839378493696240040400422996172999280106200800162002400484004231995118020110099100800001008000010080000340800020058000223411151180160040039800001004004340043401914004340043
802044004230000031040035160025801001008000010080007500183979149369624004240042299617299948010720080016200240048400403199511802011009910080000100800001008000034080002008800020011151180160040039800001004005140044400434004340050
802044004230000061040027016742580100100800001008001250018393814936962400424005029960102998280112200800222002400664004931993118020110099100800001008000010080000340800020028000223422251180160040037800001004005040043400514004340052

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l1i tlb fill (04)l1d tlb fill (05)mmu table walk instruction (07)mmu table walk data (08)l2 tlb miss data (0b)18191e1f223a3f46494f51schedule 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 tlb miss (a1)l1d cache miss st (a2)a4ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acafbcl1d cache miss st nonspec (c0)l1d tlb miss nonspec (c1)c2branch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ea? ldst retires (ed)? int retires (ef)f5f6f7f8fd
800254004230000000000310400270160258001010800001080000501839448149369624004240040299783300208001020800002024000040042400421180021109108000010800001080064042008000200080002242000502015161113400400080000104004140041400434004340044
80024400423000000000030040028016025800101080000108000050183935214936962400424004229978330023800102080000202400004004040042118002110910800001080000108000004200800020028000220000502012161214400370080000104004340041400414004340043
80024400423000000000030040027161602580010108000010800005018394481493696340040400422997833002380010208000020240000400404004211800211091080000108000010800000000800020028000004200050207161211400370080000104004340041400414004340053
800244004030000000000310400271616025800101080000108000050183944814936963400424004229975330023800102080000202400004004040040118002110910800001080000108000000008000000280002242000502013161111400390080000104005540043400434004140043
80024400423000000000030040025016025800101080000108000050183944814936962400404004229989330022800102080000202400004004240040118002110910800001080000108000004200800020008000224200050201116127400370080000104004440041400434004140043
8002440042300000000003104016516002580010108000010800005018393521493696040042400422997833002380010208000020240000400424004211800211091080000108000010800000000800021008000024200050206161210400370080000104004340044400414005340044
800244004230000000000300400270161258001010800001080000501839448149369744004240040299773300228001020800002024000040042400421180021109108000010800001080000042008000200280000242000502012161010400390080000104004440041400434004440043
80024400432990000000030040027000258001010800001080000501839448149369624004240050299773300208001020800002024000040042400421180021109108000010800001080000042008000000280000242000502011161111400370080000104004340043400414004340043
80024400403000000000030040027016125800101080000108000050184246014936962400424004229978330022800102080000202400004004240042118002110910800001080000108000004200800000028000224200050201216712400390080000104004440044400434004340043
800244004030000000000010400271600258001010800001080000501839352149369624004040042299753300238001020800002024000040043400431180021109108000010800001080000000080002000800022000050201216118400390080000104004440041400434004440043