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 (unsigned offset, 32-bit)

Test 1: uops

Code:

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

(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)03mmu table walk instruction (07)1e1f22233f46494f51schedule 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)st unit uop (a7)l1d cache writeback (a8)acafbcl1d cache miss st nonspec (c0)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? ldst retires (ed)f5f6f7f8fd
1005551400310525160025100010001000224240550540362339810001000200054254211100110001000100034100208100203473216225481000541551552541543
100454040001053616002510001000100022424054254235533981000100020005425421110011000100010003410020210020075216225391000543543543541543
1004549400010525000251000100010002242405495423533400100010002000540542111001100010001000010020810022073216225371000543543543541543
100454240000053501602510001000100022424054054235334001000100020005425421110011000100010003410000010020073216225391000543551541543541
1004540400300527161602510001000100023217054054935333981000100020005425491110011000100010000101200100203473216225391000550543543543541
100454040090052716002510001000100022424054055035333981000100020005425401110011000100010000100202100203475316325391000551552541541543
10045424063005251616025100010001000223520540540362339810001000200054254011100110001000100034100205100223475216225391000550541543543543
10045424003005271616025100010001000224240550540353339810001000200054054211100110001000100034100202100223475216235371000541543543543543
1004549400900535016025100010001000223520542540353339810001000200054054011100110001000100034100218100203475216225471000552541541543543
10045424003105270002510001000100022424054954235534001000100020005425421110011000100010000100002100223475216225391000552543543541543

Test 2: throughput

Count: 8

Code:

  str w0, [x6, #8]
  str w0, [x6, #8]
  str w0, [x6, #8]
  str w0, [x6, #8]
  str w0, [x6, #8]
  str w0, [x6, #8]
  str w0, [x6, #8]
  str w0, [x6, #8]
  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): 0.5005

retire uop (01)cycle (02)03l1i tlb fill (04)mmu table walk data (08)09l2 tlb miss instruction (0a)18191e1f22233a3f46494f51schedule 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)st unit uop (a7)l1d cache writeback (a8)acafbcl1d cache miss st nonspec (c0)branch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? ldst retires (ed)? int retires (ef)f5f6f7f8fd
8020540042300100000031004002816161258010010080000100800005001839448049369624004240042299553300008010020080000200160000400433199611802011009910080000100800001008000042800020280002042051103163340039800001004004440044400434004140043
8020440042300000000031004002716160258010010080000100800005001839448049369634004340043299553300018010020080000200160000400403199611802011009910080000100800001008000042800020280002242051103163340039800001004004340043400444004440043
8020440043300000000030004002716161258010010080000100800005001839352049369624004240054299553299988010020080000200160000400423199511802011009910080000100800001008000042800020280000242051103163340039800001004004340043400434004140043
8020440042299000000031004002816161258010010080000100800005001839472049369624004240040299533300008010020080000200160000401213199511802011009910080000100800001008000042800020280002242051103163340039800001004004140043400444004440043
802044004330000000000100400281616125801001008000010080000500183947204936962400434004329955330000801002008000020016000040043319931180201100991008000010080000100800604280002058000220051103163340040800001004004440041400434004340043
80204400423000000000310040027161602580100100800001008000050018394480493696340042400432995533000180100200800002001600004004231996118020110099100800001008000010080000080002028000200051103163340040800001004004440044400434004340043
8020440042300000000031004002816160258010010080000100800005001839472049369604004240042299553300008010020080000200160000400423199511802011009910080000100800001008000042800020280002242151103163340040800001004004440041400434004440043
802044004030000000003000400251616125801001008000010080000500183944804936962400544004229955330000801002008000020016000040042319931180201100991008000010080000100800000800020280002242051103163340039800001004004340055400434004140043
8020440042300000000031004002716161258010010080000100800005001839352049369624004240054299553300008010020080000200160238400423199311802011009910080000100800001008000042800020080002242051103163340040800001004004140043400434004440043
802044005430000000000000400280160258010010080000100800005001839448049369744004240042299553299988010020080000200160000400423199511802011009910080000100800001008000042800020280002242051103163340039800001004004340041400434004340043

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)0309181e1f2223243f46494f51schedule 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)cfd5map dispatch bubble (d6)dbddfetch restart (de)e0? ldst retires (ed)? int retires (ef)f5f6f7f8fd
800254004230000031004002716160258001010800001080000501839448149369624004240042299773300238001020800002016000040040400401180021109108000010800001080000008000295800022050202160344003980000104004340044400444004340041
8002440042300000300040025161602580010108000010800005018394721493696240040400422997733002280010208000020160000400424004211800211091080000108000010800000080002068000224250202160134004080000104004340044400444004340043
8002440054300000000040027161602580010108000010800005018394481493696240042400422997733002080010208000020160000400434004311800211091080000108000010800004208000208800022050381160134028280000104004440043400414004440046
800244018130110144010040025160025800101080000108000050183947214937122400434004329977330020800102080000201600004004340043118002110910800001080000108000000800020118000204250202160344003980000104004440044400434004340041
8002440040300000310040025160025800101080000108000050183947214936962400424004029977330022800102080000201600004004240043118002110910800001080000108000042080002110280002124250201160134004080000104004440044400434004340043
80024400433000003100400271616125800101080000108000050183944814936962400424004229977330022800102080000201600004004240040118002110910800001080000108000042080000608000224250201160134003980000104004140043400444004340041
8002440042300000700040025160125800101080000108000050183944814936962400424004229975330022800102080000201600004004240042118002110910800001080000108000042080000828000224250201160134003980000104004340043400434004340043
800244004330000030004002816160258001010800001080000501839352149369604004040042299773300348001020800002016000040042400421180021109108000010800001080000420800026118000204250204160544003780000104004340044400444004340053
8002440042300000310040025161612580010108000010800005018394481493696340042400422997833002380010208000020160000400424004311800211091080000108000010800000080002714800002050202160344003980000104004340041400444004440041
8002440042300000300040028016025800101080000108000050183944814936962400424004229977330022800102080000201600004004240040118002110910800001080000108000042080000388000224250204160424003980000104004140041400554004340043