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, 64-bit)

Test 1: uops

Code:

  str x0, [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)031e1f22233f46494f51schedule 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
1005542403105271616025100010001000224480542542355340110001000300054254211100110001000100042110022100224273116115391000543543543543543
1004542403105271616125100010001000224720542542356340010001000300054254211100110001000100042010022100224273116115401000544544544544544
1004543493105271616125100010001000224480542542355340010001000300054254311100110001000100042010022100224273116115391000543543543543543
1004542403105281616025100010001000224480542542355340010001000300054354311100110001000100042010022100224273116115391000543543543543543
1004542403105271616125100010001000224480542542355340010001000300054254211100110001000100042010022100224273116115391000543543543543543
1004542403105271616025100010001000224480542542355340010001000300054354311100110001000100042010022100224273116115391000543543543543543
1004542403105281616025100010001000224720542542367340010001000300054254211100110001000100042010022100224273116115391000543543543543543
1004543403005271616025100010001000224480542542355340010001000300054254211100110001000100042010022100224273116115391000543543543544544
1004543403005281616025100010001000224720543543356340010001000300054354311100110001000100042010022100224273116115391000543544544544544
1004543403105271616125100010001000224720542542356340010001000300054254211100110001000100042010022100224273116115401000543543543543543

Test 2: throughput

Count: 8

Code:

  str x0, [x6, x7]
  str x0, [x6, x7]
  str x0, [x6, x7]
  str x0, [x6, x7]
  str x0, [x6, x7]
  str x0, [x6, x7]
  str x0, [x6, x7]
  str x0, [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)03l1d tlb fill (05)mmu table walk data (08)l2 tlb miss data (0b)18191e1f2223243a3f46494f51schedule 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)5e60696a6d6emap 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)a9acafbbbcl1d cache miss st nonspec (c0)l1d tlb miss nonspec (c1)c2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
8020540052300100000191001400431616725801001008000010080007500184024601493698040058400582997673001080107200800162002400484005332011118020110099100800001008000010080015140018001601198000201401401115118011600400560800001004005340062400534006140053
8020440059300100000171001400320052580100100800001008000750018397180049369794005240059299777300108010720080016200240048400473200011802011009910080000100800001008001415360080016001580002016361401115118001600400540800001004005940050400604004840053
80204400473001010002110014004400025801001008000010080007500183991001493698040059400582996772999980107200800162002400484005932000118020110099100800001008000010080014150008001400188000001401411115118001600400500800001004004840059400484004840048
8020440047300101000190000400440162258010010080000100800075001840323014936980400474004829978730002801072008001620024004840058320111180201100991008000010080000100800141536008001600208000201601411115118001600400550800001004005940050400604005240048
80204400603001000001910014003716165258010010080000100800065001839987014936967400584005029969730004801072008001620024004840060320041180201100991008000010080000100800141500180014001880002016361401115118001600400440800001004005240060400534004840048
8020440058300101000190001400340165258010010080000100800065001840294004936962400424004229961730001801072008001620024004840042319951180201100991008000010080000100800000343008000200280002020001115118001600400370800001004004340052400434005240043
80204400513000000003100040036161602580100100800001008000750018394550049369624004240042299617299928010720080016200240048400403199311802011009910080000100800001008000003400800021008800020234001115118001600400370800001004005040043400414004340053
802044004229900000031000400271616025801001008000010080007500183937800493696040042400422995972999280106200800162002400484004031993118020110099100800001008000010080000034208000001880002020001115118001600400390800001004004340043400434004340059
802044004229900000030000400251600258010010080000100800075001839378004936962400514004229969729994801072008001620024004840050319931180201100991008000010080000100800000340080000022800020234001115118001600400390800001004004140041400434005140061
802044004230000000091000400271616025801001008000010080007500183945500493696240051400422996172999480107200800162002400484005031995118020110099100800001008000010080000034008000034026800020234001115118001600400370800001004004140043400434004140059

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk data (08)l2 tlb miss instruction (0a)l2 tlb miss data (0b)191e1f223a3f46494f51schedule 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)5f696a6d6emap 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 mispred nonspec (cb)cfl1i cache miss demand (d3)d5map dispatch bubble (d6)ddfetch restart (de)e0? ldst retires (ed)? int retires (ef)f5f6f7f8fd
8002540042300000000600400270002580010108000010800005018398560493696240051400422998533002280010208000020240000400404005011800211091080000108000010800000340080002002800022000050200316444003980000104005140041400434004340052
80024400403000001001711403140168258001010800001080000501840174049369674004740059299933300318001020800002024000040059400581180021109108000010800001080014143600800160118800021636140050200616674005680000104005340060400544006040043
800244004230000000031040027161602580010108000010800005018402440493696740047400472998533003280010208000020240000400424004211800211091080000108000010800000000800020008000223400050200616444003780000104005040043400434004140051
8002440042299000000310400271616025800101080000108000050184031604936978400524005229987330038800102080000202400004005340058118002110910800001080000108001515002800160217800021636140050200316644005680000104006040054400494004840059
80024400523001101001910400341616025800101080000108000050183969204936967400604005229986330038800102080000202400004005040053118002110910800001080000108001414362080076002780000160141050200316344004480000104005440049400484004840052
800244005930011010144310400271600258001010800001080000501840174049369804005840059299943300308001020800002024000040058400581180021109108000010800001080014153501800160220800021636141050200316344005480000104005940048400604005340060
800244004730010000019114004316155258001010800001080000501842761049369724004740050299823300328001020800002024000040060400511180021109108000010800001080015153600800160017800021636142050200616474004780000104006040053400594006040059
80024400523001101061911400361616225800101080000108000050184022004936972400614005129982330027800102080000202400004006040047118002110910800001080000108001414362080016001980000164000050200416444003980000104004140043400434004340052
800244004230000000030040027161692580010108000010800005018401740493697240049400522998733002780010208000020240000400504005211800211091080000108000010800000340080002008800022000050200416344003980000104004340043400434004340043
8002440049299000000910400271616025800101080000108000050184019904936973400604005229982330038800102080000202400004005040053118002110910800001080000108001414002800160016800021636141050200416394005680000104005340058400544005940048