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

STRH (unsigned offset)

Test 1: uops

Code:

  strh 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)03l1d tlb fill (05)mmu table walk data (08)l2 tlb miss data (0b)1e1f223a3f46494f51schedule 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 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
100556341100180153716160251000100010002269315525543653410100010002000563554111001100010001015154401101402141002164414073116115391000541543543543541
1004540400001401532016425100010001000226921551554366340510001000200054755411100110001000101514000101401171002164414273116115511000555555555555554
10045524111017015321616225100010001000226921554552360340510001000200055454711100110001000101515440210140118100216014073116115511000555555555554553
10045524100614015320161251000100010002302815475533763410100010002000563554111001100010001014154411101602171002144414073116115521000553549555548555
10045544110614015391601251000100010002302815545483673421100010002000554552111001100010001014154400101601161002164414073116115441000548555548548555
10045534100020015390151251000100010002269215545523603410100010002000554553111001100010001014144401101601181002144214173116115511000555555555555555
1004547410001511539160225100010001000230281547563367342210001000200054754711100110001000101515440010160017100216014173116115481000555555553552548
10045634101014115391616725100010001000226931554547367341210001000200055455211100110001000101515000101602141002164414173116115451000548553553656555
1004554410102011539160225100010001000230281547563367342110001000200055454711100110001000101615001101600181000164414073116115491000555548553553549
100456441101214015370161251000100010002290815515543663405100010002000553547111001100010001014154401101600191002164414173116115611000554553553565555

Test 2: throughput

Count: 8

Code:

  strh w0, [x6, #8]
  strh w0, [x6, #8]
  strh w0, [x6, #8]
  strh w0, [x6, #8]
  strh w0, [x6, #8]
  strh w0, [x6, #8]
  strh w0, [x6, #8]
  strh 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.5007

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk data (08)l2 tlb miss data (0b)191e1f22233a3f46494f51schedule 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)c2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? ldst retires (ed)? int retires (ef)f5f6f7f8fd
80205400423001010018001400321604258010010080000100800005001840220049369674004940052299653300108010020080000200160000400473200311802011009910080000100800001008001614360080014001980000163614051101161140055800001004005940048400604004840053
802044006030010100181014004316165258010010080000100800005001839788049369794005240059299603300178010020080000200160000400593200011802011009910080000100800001008001414360180016001780000143614151101161140044800001004005940050400484004840053
8020440060299100001900140043016525801001008000010080000500183993204936980400474005829970330005801002008014420016000040061320001180201100991008000010080000100800151400080016001880002163614151101161340179800001004006140048400504004840060
80204400593001010019001400320162258010010080000100800005001839860149369724006140051299603300108010020080000200160000400603964711802011009910080000100800001008001414361180016011480002163614151101161140047800001004006240048400614006040059
80204400523001100014101400321616025801001008000010080000500184034114936970400594006129972330010801002008000020016000040059320001180201100991008000010080000100800141400280016011880000163614251101161140049800001004005140060400524005940062
8020440058300101001900140032016525801001008000010080000500183988404936979400594005929960330018801002008000020016000040047320121180201100991008000010080000100800141436008001602178000216014051101161140045800001004006040048400594005340059
802044004730010100180014003216165258010010080000100800005001839932149369674005140047299603300178010020080000200160000400523200011802011009910080000100800001008001414360080016022080000163614251101160140054800001004005940048400484005340048
802044005030011000210014003216165258010010080000100800005001839692149369784004740052299653300168010020080000200160000400533200011802011009910080000100800001008001416360180014002080002163614051101161140044800001004005940053400604005440060
80204400513001010121910140032016925801001008000010080000500183971904936972400474005329965330019801002008000020016000040188320001180201100991008000010080000100800151536028001603208006016014151101161140044800001004004940053400624005340060
80204400533001012306171014003216162258010010080000100800005001839692049369674004740047299723300178010020080000200160000400523201111802011009910080000100800001008001415360080016001880000163614051101161140047800001004006040048400624004840060

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03191e1f22243f46494f51schedule 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 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)d9dadbddfetch restart (de)e0? ldst retires (ed)? int retires (ef)f5f6f7f8fd
800254004330000300400271616025800101080000108000050183935200493696340040400402997533002280010208000020160000400424004011800211091080000108000010800004280002028000224205020916004994003980000104005540041400444004340044
800244004230000300400251616025800101080000108000050183935200493696240054400422997733002080010208000020160000400424004211800211091080000108000010800004280002028000204205020816003994003980000104004140043400414004140044
800244004330000300400270002580010108000010800005018393520049369604004040042299783300208001020800002016000040042400401180021109108000010800001080000080002058000024205020816001994004080000104004440043400414004440043
80024400403000631040027161602580010108000010800005018393520149369604004240040299773300228001020800002016000040042400421180021109108000010800001080000428000202800022005020111600210104003980000104004440044400414004340044
80024400403000031040039016025800101080000108000050183947200493696240042400422997533002280010208000020160000400404004211800211091080000108000010800000800000280002200502010160011194003780000104004340043400434004340043
8002440042300003004002516002580010108000010800005018394480049369604004040042299773300228001020800002016000040042400401180021109108000010800001080060428000012800022420502010160011094003980000104004340043400414004340041
800244004230000310400251616125800101080000108000050183990500493697440040400402997733002080010208000020160000400434004311800211091080000108000010800004280000028000220050209160019104003980000104004340041400434004340041
800244004230000151040027016025800101080000108000050183935200493696240040400422997833002280010208000020160000400404004011800211091080000108000010800004280000028000220050209160011094003980000104004440043400414004440043
8002440043299003004002716160258001010800001080000501839448004936960400424004229977330022800102080000201600004004240040118002110910800001080000108000008000200800002420502011160009124003780000104004140041400434004140041
8002440040300003004002516012580010108000010800005018393520049369634004340043299753300208001020800002016000040042400401180021109108000010800001080000080000028000224205020816000984004080000104004340044400414004340043