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, post-index, 3 regs, 2D)

Test 1: uops

Code:

  st1 { v0.2d, v1.2d, v2.2d }, [x6], x8
  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
  mov x8, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires (minus 60 nops): 3.000

Issues: 4.000

Integer unit issues: 1.000

Load/store unit issues: 3.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)03mmu table walk instruction (07)09l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f2223243a3f4951schedule 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)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 cache miss st (a2)st unit uop (a7)l1d cache writeback (a8)a9abacafl1d cache miss st nonspec (c0)c9cfd0d2l1i cache miss demand (d3)l1i tlb miss demand (d4)d5map dispatch bubble (d6)d9dadbddfetch restart (de)e0? int output thing (e9)eaebec? ldst retires (ed)? int retires (ef)f5f6f7f8fd
6300529833236251371101292461600145523013302369840361005302110103021502516647306172782954730168310400030007000293422930511610011000100030006300010466300000130899397686931579732081933213817117470285611000161751315113977300010002939229501294232938829385
6300429344228330270000000146562923702398940001000300010003000500015904309170352853129542310400030007000292702929911610011000100030000300080033000001316595296895319214612091633233813137472287561000159451324314493300010002940629381294932951729548
63004294012292802500001000471029239023449400010003000100030005000159052001704728634295583104000300070002940229448116100110001000300063000340033000001311192566933315515662064232383808148062285711000163621320714446300010002941329589294912941029404
63004296022282802500001000468929315023512400010003000100030035000159044001703628691295643104000300070002941029356116100110001000300063000330003000601328493576940312813622087732823810207571288111000163071316214361300010002961629559296022964029616
63004294752372802500001000467529708023479400010003000100030035000159101001702728843295823104004300370002933729509116100110001000300063001532016803000901318492996969312915682071033143814216867287311000162951301714549300010002943429647296272947928764
63004289032352902400091000477028205022722400010003000100130005000159096001703928102288503104000300370002856428684116100110001000300063000390003000601328994656996317412662017531823809286770283751000154631248513906300010002877428808288422890228856
630042872922325033000010004724286160225594000100030001000300050001590061017062281722878881040003000700028588285961161001100010003000630006004073000001335694176955312316702015931883812236974281621000157191239613909300010002878529187288872895128811
6300428745223260260000100047452864402274540001000300010003000500015897510170402818328798310400030007000287562866811610011000100030006300050093000601332695386854310911702024432083814307077282521000156151260313999300010002878928901287942883528885
6300428861223300250000100047732877622273640001001300010003000500015897800170742818828834310400030007000287212870611610011000100030046300042093000601307593126934315616692023931663809286674282551000157501246714052300010002882228889288792896328963
63004288562232802700000000465428649022762400010003000100030005000159034101703828175288773104000300070002865128685116100110001000300063000572033000001322594566934309016702015932003815347571282441001156881251013983300010002884828992287292892428830

Test 2: throughput

Count: 8

Code:

  st1 { v0.2d, v1.2d, v2.2d }, [x6], x8
  st1 { v0.2d, v1.2d, v2.2d }, [x6], x8
  st1 { v0.2d, v1.2d, v2.2d }, [x6], x8
  st1 { v0.2d, v1.2d, v2.2d }, [x6], x8
  st1 { v0.2d, v1.2d, v2.2d }, [x6], x8
  st1 { v0.2d, v1.2d, v2.2d }, [x6], x8
  st1 { v0.2d, v1.2d, v2.2d }, [x6], x8
  st1 { v0.2d, v1.2d, v2.2d }, [x6], x8
  mov x7, x6
  mov x8, x6
  mov x9, x6
  mov x10, x6
  mov x11, x6
  mov x12, x6
  mov x13, x6
  mov x8, 0

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk data (08)09l2 tlb miss data (0b)18191e1f22243a3f46494f51schedule 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)c2c9branch mispred nonspec (cb)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
240205120042930000000123001120027161612532010080100240000801002400004707125519448120017120042120040899553900013201002002400002005600001200421200421180201100991001008000080000100240000000024000210224000224200005112516561200378000024000080100120043120044120043120043120043
240204120042930000000132300112002716160253202098010024000080100240000470712551944812002912004212004289955390000320100200240000200560000120042120042218020110099100100800008000010024000004200240016002124000224200005130516551200488000024000080100120043120044120055120043120041
24020412004293110010014420002120039161624832010080100240000801002400004706585519448120015120042120042899533900003201002002400002005600001200401201801180201100991001008000080000100240015145000240016012024000224200005112516451200398005724000080100120044120043120043120041120044
240204120040931100000031011200271601253201008010024000080100240000470712551997612001712004212004290242379054832083520024060020256166712072612072261802011009910010080000800001002401800420024000200204724000224200005112544631206598020024000080100120723120780120831120722120047
240204120040931000010030011200291616125320100801002400008010024010847071255194481200171200431200429040538999832010020024000020056000012004212004311802011009910010080000800001002400600420024000210224000224200005112316551200398000024000080100120043120041120043120043120043
240204120042930000000030011200271616125320100801372400008010024000047071255194481200151200421200428995538999832010020024000020056000012004212004011802011009910010080000800001002400151444012400161178624000224200005112516551200408000024000080100120043120043120045120043120043
240204120042930000010301011200271616450320100801002400008010224000047071255199041253671200441200438995539000032010020024000020056000012004212004311802011009910010080000800001002400141444002400161279424000424200005112516451200398000024000080100120043120043120044120043120044
240204120043931100000030011200271600253201978010024000080100240000470720551944812001712004212004289956389998320100200240000200560000120180120042118020110099100100800008000010024000004232024000010524000224200005112316551200408000024000080100120043120041120043120043120043
2402041200429300000000300112002716012532010080100240000801002400004707125519448120017120043120042899533900003202582002400002005600001200421200541180201100991001008000080000100240000000024000200324000024400005112516651200398000024000080100120043120045120043120043120044
240204120042931000000120011120027161602532010080100240000801002400004721225519692120030120192120052899663900123201002002401212005600001200631200521180201100991001008000080000100240015144400240014011624000224200005112316531200408000024000080100120041120043120044120043120043

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l1d tlb fill (05)l2 tlb miss data (0b)18191e1f22233f46494f51schedule 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)60696b6d6emap 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)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
24002512004393001000300120027161675253200108001024000080010240000470195551961601200150120040120043900703900333200102024000020560000120175120042118002110910108000080000102400000423224000210224000224205020122612121200398000024000080010120043120043120041120176120041
240024120042930000021300120025161602532001080010240000800102400004701955519448012001701201721200428997739002432001020240121205600001200401200401180021109101080000800001024000004202400021082400022420503312167131200398000024000080010120055120043120043120041120041
240024120042932100003001200271616125320010800102400608001024000047020355194480120017012004212004289977390131320010202400002056000012004212004011800211091010800008000010240000000240002102240002042050207161371200518003924000080010120043120043120043120043120043
240024120184931000003001200391616025320010800102400008001024000047019555194960120015012017312004289977390022320010202401192056000012004212004211800211091010800008000010240000042024000200224006204205034121612121200408000024000080010120044120044120043120043120043
24002412004393100000300120025161662532001080010240000800472400004701955519472012001801200401200438997539002232001020240000205600001200421200421180021109101080000800001024000004202400020052400022420502051612131200398000024000080010120043120043120043120044120043
2400241200439300000030012002716166253200108001024000080010240000470195551947201200180120042120175899873900223200102024000020560000120042120042118002110910108000080000102400000420240002005240062246050205165121201608000024000080010120044120044120043120044120119
2400241200429310000030012002816160253200108001024000080010240000470195551947201200150120042120042899773900203200102024000020560000120043120042218002110910108000080000102400000002400020022400002420502051613131200398000024000080010120043120041120179120043120041
24002412004293100100300120028161612532001080010240000800102400004701955524356012001501200421200408997539002032001020240000205600001200461200441180021109101080000800001024000004202400021075024000220050207161351200398000024000080010120043120044120044120044120088
240024120042931000003001200271616745032001080048240120800102428084709205533836012038101203141204409025525901293203012024011920560557120304120313418002110910108000080000102401270423224012200230724012224225033123517141230578011224000080010120180120439120309120316120307
24002412017893501311321790012002516161253200108001024000080010240000470195551997601200180120042120043899773900223200102024000020560000120042120042118002110910108000080000102400000420240002105240002200502011165121200398000024000080010120043120043120041120043120043