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, 4 regs, 16B)

Test 1: uops

Code:

  st1 { v0.16b, v1.16b, v2.16b, v3.16b }, [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): 4.000

Issues: 4.000

Integer unit issues: 0.000

Load/store unit issues: 4.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk instruction (07)mmu table walk data (08)09l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f22243a3f464951schedule uop (52)schedule ldst uop (55)dispatch ldst uop (58)simd uops in schedulers (5a)5f696b6d6emap 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)a9acafbcl1d cache miss st nonspec (c0)l1d tlb miss nonspec (c1)c2c9cfd0d2l1i cache miss demand (d3)l1i tlb miss demand (d4)d5map dispatch bubble (d6)d9dadbddfetch restart (de)dfe0eaebec? ldst retires (ed)f5f6f7f8fd
6400528655222129112110009004846284894422536400040004000216391317028028055286873104000400080002869028571116100110001000400540040060194002414400133099522686131781570197713157381019626222811015610126811404840002874128662286712862228827
6400428604222123002700009004851286284422541400040004000216211417033028110287393104000400080002847628685116100110001000400450140040284002614420130839321688031151465196753126381931656522815415366125681387540002874028692287942855528692
640042867822412701221001280047762863844225704000400040002160691703332810328847310400040008000286092868311610011000100040055024004027400248410133369613692431641666196543094382138605822820615307125481419340002859828798288882884028744
64004286552231250020000050046412856600226384000400040002162951704302813328777310400040008000287472863611610011000100040045814004014400040410132769397701631751464197413138382130646522814615241126571426240002880328598287352864728799
64004286432231261025010040048952863200227034000400040002163291704002811928746310400040008000285962857511610011000100040045824004014400048400132839470696432801469197453192382034666222809615556127461416540002878428748287742865528776
64004287492221241123100050046982856700227204000400040002163591702102818328875310400040008000287782857411610011000100040055814004024400040410132479528692831841461198103167382632605922815215684124931399840002869128808287332857928819
640042877722312401231000930047872848500225894000400040042163991701902811128862310400040008000286582872911610011000100040045004004024400048410131529279688431991155198103225382724615622822215287124321422040002877828703286622866728713
64004288062231170021100040049242864700227864000400040002163491703302820228645910400040008000286362869911610011000100040055804000004400048420133099546697932101258197013205382533696022816215614123761424540002858128674286772877328760
64004288352221211017100050047162855000226034000400040002163781704402817528744310400040008000286012865511610011000100040055814004114400240400131969478698931521267198003212382531625922824015673124631419440002882928723288502872128804
6400528748223116102310009004690285620022608400040004000216286170410280632872131040004000800028683286091161001100010004005581400400440026842013127958470533232957197803349382522576332819015401126441370340002869428746288542885028715

Test 2: throughput

Count: 8

Code:

  st1 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6]
  st1 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6]
  st1 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6]
  st1 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6]
  st1 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6]
  st1 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6]
  st1 { v0.16b, v1.16b, v2.16b, v3.16b }, [x6]
  st1 { v0.16b, v1.16b, v2.16b, v3.16b }, [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): 2.0007

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk instruction (07)mmu table walk data (08)09l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f233a3f46494f51schedule 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)6061696d6emap 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)branch mispred nonspec (cb)cdcfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? ldst retires (ed)? int retires (ef)f5f6f7f8fd
3202051600541241101010000108021600381616525320100100320000100320000500736002800160028160054160054799903800343201002003200002006400001600541600511180201100991001008000080000100320014140003200149621632000216441400005110031721160044320000100160055160055160048160055160064
32020416005412401100100012170216003900125320100100320000100320000500736005200160029160063160054799853800363201002003200002006400001600521600631180201100991001008000080000100320015145029032001610102832000216441400005112022621160044320000100160048160055160055160055160055
32020416004712411100120021170216003716162253201001003200001003200005007360460001600291600521600548006938004632010020032012020064000016005416005211802011009910010080000800001003200141444003200169702032000214441410005112022612160044320000100160055160064160064160064160048
32020416006312411110110091701160036161612532010010032006010032000050073604870016002916005116005579985380045320100200320000200640000160054160131118020110099100100800008000010032001517440032001610211832000016441400005112021712160171320000100160055160055160048160055160055
3202041600541241110010000141116003716012532016010032000010032000050073596920016003016005416005279989380036320100200320000200640000160063160054118020110099100100800008000010032001515001320016960173200001601410005110011712160180320000100160137160055160055160055160053
320204160054124011001100014021600391616025320100100320000100320000500736043800160029160192160047799853800293201002003200002006400001600541600511180201100991001008000080000100320014144401320016961173200621601400005112021713160051320000100160055160048160187160055160056
3202041600541240110011001441701160032161652532010010032000010032000050073598840016023616005316004880001158003432010020032000020064000016019116005411802011009910010080000800001003200141444013200761512432000216441410005112021712160060320000100160064160065160064160053160086
3202041600541240110011010170216003616022532010010032000010032000050073600280016002216005416004780069380029320100200320000200640000160052160047118020110099100100800008000010032001415440032001611112132006216441410005112031712160060320000100160192160053160192160191160193
320204160048124110000222396283021603101616220115320282100320060100320432511736965200160260160460160461801452780334320316202320240200640720160469160607418020110099100100800008000010032019414510032001613902232000214441400005112021721160044320000100160055160048160055160055160048
3202041600541240101011001214021600371616322532010010032000010032000050073596930016002916005216006379993380034320100200320000200640000160054160052118020110099100100800008000010032001414440132001611001632000216441400005112021722160051320000100160064160064160054160065160048

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk instruction (07)mmu table walk data (08)09l2 tlb miss instruction (0a)l2 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)6061696d6emap 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)c2cfd0d5map dispatch bubble (d6)dbddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
320025160180124100001000014002160027161602532001010320000103200005073594480016001816004216004479993158012932022620320120206404801603211601812180021109101080000800001032018004289232019600238323201222420050440144053160408132000010160320160320160320160459160596
3200241604581245011010245282850011600271601253200101032000010320000507359448001600151600401600437997838002432001020320000206400001600431600401180021109101080000800001032000004200320016110232000224414050200117031160039032000010160043160043160043160043160055
320024160043124001001000397101160025161602532001010320000103200005073594480016001716004216004279981380024320010203200002064000016004216004211800211091010800008000010320000042003200020023200022420050200117021160039032000010160041160041160043160044160043
32002416004012410000100060100160027161612532001010320000103200005073594480016001716004216004379992380025320010203200002064000016004216004011800211091010800008000010320000042003200020023200022420050220417021160040032000010160041160043160044160043160055
320024160042124100001000030001600271616125320010103200001032000050735935200160017160042160042799803800253200102032000020640000160052160063118002110910108000080000103200000420032000202163200022420050220217031160051032000010160043160041160043160043160048
320024160054124101000000014001160027161602532001010320000103200005073594480016001716004216005479981380025320010203200002064000016004216004211800211091010800008000010320000042023200160223200022420150200117021160051032000010160055160044160043160044160053
32002416012112410100100001700116002716002532001010320000103200005073593520016001716004216004379981380024320010203200002064000016004216004311800211091010800008000010320000042003200020023200022420050205217022160039032000010160043160043160043160043160043
320024160043124100000000030001600271616025320010103200001032000050735944800160017160042160042799802080024320010203200002064000016005416004011800211091010800008000010320183042118232012007238732018224200541204323021160397032000010160458160598160459160457160596
32002416045712430110013439619000016002716002532001010320000103200005073593520016001816004216004279981380022320010203200002064000016004216004311800211091010800008000010320000042592320122021432000014420050200217011160039032000010160055160043160044160043160043
32002416004212410100100026419500016002701602532001010320000103200005073593520016001516004216004279991380022320010203200002064000016005416004311800211091010800008000010320180200032000200143200022420050220117031160039032000010160043160043160043160044160043