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

Test 1: uops

Code:

  str w0, [x6, w7, sxtw]
  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)1e1f22233a3f46494f51schedule 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 cache miss st (a2)a4st unit uop (a7)a9acafbcl1d cache miss st nonspec (c0)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? ldst retires (ed)f5f6f7f8fd
100555440031005281616125100010001000228845425423553400100010003000543543111001100010001000420100202100224273116115401000544544544544544
100454241031005271616025100010001000224485425423553401100010003000542543111001100010001000420100202100224273116115391000543543543543543
100454241031005271616025100010001000235085425433563400100010003000543542111001100010001000420100202100224273116115391000543543543543543
100454241030005271616025100010001000234605425423553400100010003000542554111001100010001000420100202100224273116115391000543543544544544
100454331030005271616125100010001000234605425423553400100010003000542554111001100010001000420100202100224273116115391000543543543543543
100454241030005281616025100010001000224485435423553400100010003000542554111001100010001000420100202100224273116115391000544544544543543
100454241031005281616025100010001000229565425423553400100010003000543543111001100010001000420100202100224273116115391000543543543543543
100454241031005271616125100010001000229085425423553412100010003000542542111001100010001000420100202100224273116115391000543543555543543
100454240030005271616125100010001000229345435423553401100010003000542542111001100010001000420100202100224273116115391000544544543543543
100454241031005271616025100010001000234385425423553400100010003000542542111001100010001000420100202100224273116115391000543543543543555

Test 2: throughput

Count: 8

Code:

  str w0, [x6, w7, sxtw]
  str w0, [x6, w7, sxtw]
  str w0, [x6, w7, sxtw]
  str w0, [x6, w7, sxtw]
  str w0, [x6, w7, sxtw]
  str w0, [x6, w7, sxtw]
  str w0, [x6, w7, sxtw]
  str w0, [x6, w7, sxtw]
  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)03191e1f22233f46494f51schedule 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)a4st 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)dde0ea? ldst retires (ed)? int retires (ef)f5f6f7f8fd
802054004330000310400271616025801001008000010080006500183947414936960400424004029962729994801062008001620024004840043319961180201100991008000010080000100800000420800020058000224211151181160400401800001004004340044400444004140041
802044004230000310400251616125801001008000010080006500183950314936963400404004329961729995801062008001620024004840042319951180201100991008000010080000100800000420800021028000204211151180160400390800001004004340043400434004340041
802044004230000300400271616025801001008000010080006500183947414936960400424004229959729992801062008001620024004840042319951180201100991008000010080000100800000420800020028000024211151180160400390800001004004140043400434004140043
80204400422990031040025161602580100100800001008000650018393781493696040042400422996172999480106200800162002400484004631993118020110099100800001008000010080000000800000028000224211151180160400400800001004004440044400434004140043
802044004230006310400271616025801001008000010080006500183961814936962400404004229961729994801072008001620024004840040319931180201100991008000010080000100800000420800020028000224211151186160400400800001004004140044400414004340043
802044004230000310400271616125801001008000010080006500183937814936960400544004029961729994801062008001620024004840043319931180201100991008000010080000100800000420800020028000004211151180160400390800001004004340043400444004440041
8020440040299003004002516002580100100800001008000650018394741493696240042400422996172999480106200800162002400484004231995118020110099100800001008000010080000042080002002800020011151180160400390800001004004340044400444004340041
80204400403000000040027161602580100100800001008000650018394741493696040042400402995972999480107200800162002400484004031995118020110099100800001008000010080000000800020028000024211151180160400390800001004004340043400434004340043
80204400423000030040025160025801001008000010080006500183937814936963400424004229959729992801062008001620024004840042319931180201100991008000010080000100800000420800020008000004211151180160400390800001004004340043400444004140044
80204400403000030040027160025801001008000010080006500183937814936962400404004229961729992801062008001620024004840042319931180201100991008000010080000100800000430800020008000224211151180160400400800001004004140044400434004340043

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk instruction (07)mmu table walk data (08)l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f2223243f46494f51schedule 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)696a6b6d6emap 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)a4st unit uop (a7)l1d cache writeback (a8)a9acafbcl1d cache miss st nonspec (c0)c2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
80025400593000000001476100400251616025800101080000108000050183942449369600400404004229978330022800102080000202400004004040040118002110910800001080000108000003408000000280000234050226166640039080000104005140041400504004340050
80024400422990000012283100400271616325800101080000108000050183983249369620400404004229985330022800102080000202400004004240040118002110910800001080000108000003408000200880002034050206166440039080000104004340043400434004140043
8002440050299000000183100400351616025800101080000108000050183935249369623400424004229975330020800102080000202400004004040042118002110910800001080000108000003408000200080000234050206164640047080000104004140051400434004140041
80024400422990000003010040027016025800101080000108000050183935249369620400404004229975330020800102080000202400004005040042118002110910800001080000108000003408000200280002234050206166640037080000104005040043400434004340043
800244005129900000093100400251616025800101080000108000050183935249369600400504004229977330022800102080000202400004004240051118002110910800001080000108000003408000000880000234050205164640037080000104004140043400414004340043
80024400403000000006000040027161602580010108000010800005018398084936970040042400502997733002280010208000020240000400404004211800211091080000108000010800000340800020028000220050206166640037080000104004340041400434005140043
8002440042300000000273000400271616025800101080000108000050183942449369600400424005029975330022800102080000202400004004240040118002110910800001080000108000003408000200580002034050205166640039080000104004340043400434004140041
800244005030000000012310040035161602580010108000010800005018394244936962040042400422997533002280010208000020240000400424004911800211091080000108000010800000340800020058000220050204164640037080000104004140043400434004340043
80024400403000000001831004003516160258001010800001080000501839352493696204004040040299753300308001020800002024000040050400401180021109108000010800001080000000800000008000220050206164640037080000104004140041400434005140043
80024400503000000006310040027161602580010108000010800005018393524936962040042400422997833002080010208000020240000400424005011800211091080000108000010800000340800000058000220050204166440039080000104004140043400434004140041