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

ST1 (multiple, 1 reg, 8B)

Test 1: uops

Code:

  st1 { v0.8b }, [x6]
  nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop ; nop
  mov x0, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires (minus 60 nops): 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)mmu table walk data (08)09l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f23243a3f464951schedule uop (52)schedule ldst uop (55)dispatch ldst uop (58)simd uops in schedulers (5a)5f6061696d6emap 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 simd store (99)inst ldst (9b)l1d tlb access (a0)l1d tlb miss (a1)l1d cache miss st (a2)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acafl1d cache miss st nonspec (c0)c2c9cfd0d2l1i cache miss demand (d3)l1i tlb miss demand (d4)d5map dispatch bubble (d6)d9dadbddfetch restart (de)e0eaebec? ldst retires (ed)f5f6f7f8fd
6100529400228270029010132000461828808012432010001000100050001300159382840229217310100010002000291462911711610011000100010000201000000100030013044939168953048126421638329038031155502849616237135851528110002929129273292922927429341
61004292542282200270000100453428808112433510001000100050001400159432831729307310100010002000291652912611610011000100010000001000003100000012965930168843038144621674316437991552542843616205137171569010002927329239293222927029265
610042941622723002100000004615289680024442100010001000500015001618028264290723101000100020002874328698116100110001000100003010001103100000013485981570543224154821083321138131456542806315261129121480210002868028705287622866428894
6100428796222190017000000147302828701236741001100010005000910159352807928564310100010002000286582859711610011000100010000001000000100020013153962270513227145620896318038111952602802915219129621473710002868128774286532857128629
610042861722219002500012000487628322102368110001000100050001000159842795728631329100110012000285282850511610011000100010000201000000100020013423983769543191135421135321038161547482807915245128191498510002881628707287622858128640
6100428761222170026000000047982839800237361000100010005000500159702813728702310100010002000284922846011610011000100010020001000000100020013309944569003191164621095316138092049502808915246127721466010002878828640286652877228666
610042866022221002500014488004659285970023876100010001000500050015970281582875431010001000200028542280661161001100010001000020100102010013001338096306926322995720992315038121254492817415555128861467510002866328666286332866428788
610042875922319001800000004743283870023668100010001000500021015964280572874231010001000200028651285841161001100010001000020100000010000001329896677042319916562102430943818448532814415030131781472210002865328613286872871228718
610042876622325002400000004729284661023626100010001000500020815960281222873131010001000200028575285681161001100010001000020100000010002201323596957020327510542103732723813943442823515933133401517010002909929381290442917129092
61004287052262200191359242640049072908800243621000100010005000210159582807828703310100010002000285952868911610011000100010000201000000100020013009932368243145115121205319538121047452836815594131261515810002869528694288082875528749

Test 2: throughput

Count: 8

Code:

  st1 { v0.8b }, [x6]
  st1 { v0.8b }, [x6]
  st1 { v0.8b }, [x6]
  st1 { v0.8b }, [x6]
  st1 { v0.8b }, [x6]
  st1 { v0.8b }, [x6]
  st1 { v0.8b }, [x6]
  st1 { v0.8b }, [x6]
  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)09l2 tlb miss data (0b)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)696d6emap 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 alu (97)inst simd store (99)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)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
80205400593221100000180014004316167225801001008000010080000500184022340027400494005229965330009801002008000020016000040047400421180201100991001008000080000100800740360080074101780002163614000511031623400441800001004005340054401944005440061
80204400593221001000190014003216168325801001008000010080000500184453740033400474005929972330015801002008000020016000040191400481180201100991001008000080000100800140360080014002080000163614000513041635400390800001004006140054400524004840060
8020440053322100000000014003216157725801601008000010080000500184024440027400594019029964107309798107420480968200160000401554019411802011009910010080000800001008013414360080076001480002163714300513322522400440800001004019840180400604019940193
802044005832410000003001400371416148175801001008000010080000500184019740034400404005829971330016801002008000020016000040050400421180201100991001008000080000100800141500080016001880002163614000511041632401730800001004005440194400544019140187
8020440047322100010019001400321616525801001008000010080000500184024440027400594005329960330010801002008000020016000040059400521180201100991001008000080000100800150360080016102380002163614000511031642400390800001004004840051400514005140048
8020440052321100000123101400441616325801001008000010080000500183969240034400474004829961330008801002008000020016000040052400502180201100991001008000080000100800151500080016011780000163614000511021622400440800001004005340043400544005340048
80204400593221000000600140044161602580100100800001008000050018402924002240050400592997229300178010020080000200160000400524004911802011009910010080000800001008001417360080016011980000143614000511021624400490800001004006140050400484004840048
80204400523221101000140014031316160258010010280000100800005001839980400354004040061300273301428042420280484200160000401944005121802011009910010080000800001008007714443038001610198030216440100511021622400490800001004006440053400534004140055
802044005432110000012190014003716164258010010080000100800005001840004400174005440053299653300128010020080000200160000400524005411802011009910010080000800001008001415420080016012180002164414000511021632400510800001004005540064400534005340055
802044005332100010012190014003616166258010010080000100800005001839448400274004340053299653300128010020080000200160000400544005411802011009910010080000800001008001414440080016101980002164414100511031633400490800001004004440053400644005540056

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss data (0b)18191e1f23243f46494f51schedule 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)696d6emap 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 alu (97)inst simd store (99)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)branch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)d8d9daddfetch restart (de)e0? ldst retires (ed)? int retires (ef)f5f6f7f8fd
800254004431000001230040031161632580010108000010800005018394484001740366402033020533002380010208000020160000400404004011800211091010800008000010800000420080000002800022420503932425601334003980000104004340043400434004340041
8002440043323000003004002716167455800701080000108000050184198940135400404004029975330022800102080000201600004004240040118002110910108000080000108000004200800620028006224205020516003334003980000104018140046405764004440181
800244035532501011323004002516160258007010800001080000501844869400184004340042299773300208001020800002016000040042400421180021109101080000800001080000042310800021058000204405020316060334003780000104004340041400414004140142
800244004231000100300401200028558007010800601080000501841989400174004340040299753300208001020801212016024240138401412180021109101080000800001080000000080002008028000224205039324000334004080000104004440041400414004340043
800244004231100120000401651616025800101080000108000050184705040092400434004230072330022800102080000201600004004340042118002110910108000080000108006004211508150012112778006224205061348000334039980000104031940465407024045740460
8002440461314100003004016716161035580130108012010801085018492584037540594404593025542304408044220803632016072640457404645180021109101080000800001080180442592801821230018024224205168648000344003980000104004740186401844004740185
800244004531000010300400271616425800101080000108000050183935240017400424004329977330023801182080000201600004004240042218002110910108000080000108000004200800020058280002200502032425600334011380000104004340043400444018340055
800244004231100100300400271607225800101080000108000050183947240015400434018129981330096801182080000201600004004340142118002110910108000080000108000000290800021038006204205020416020334004280000104004140041400414004140044
8002440043310000008801401231616025800101080000108000050183947240017400404004229977330034800102080000201600004004340054118002110910108000080000108000004200800020228000204205020316020334003980000104004140041401834004140041
800244004031000000300400311616125800101080060108000050183944840017401424004229977330020800102080000201600004004240040118002110910108000080000108000024600800620228000224205020316000334003980000104004340321400444004340183