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, 2D)

Test 1: uops

Code:

  st1 { v0.2d }, [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)03l1i tlb fill (04)l1d 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)5e5f6061696d6emap 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)e0eaebec? ldst retires (ed)f5f6f7f8fd
610052934222620500600001004613287870024232100010001000500009001595528441293723101000100020002916729152116100110001000100002010000001000020001303092226907311514721702319438082151472847416162136301596210002925129391293392928929267
610042946422700600600027011046232888700242661000100010005000011001596628375293773101000100020002927229212116100110001000100002010001001000030001298194386919316555621669320538181354512858116245134681580810002914929391293352943429351
6100429419227009004000510004603287301024361100010001000500005001596128462293053101000100020002915229196116100110001000100003010000001000030001294294436943315214521710323538131052512853216136136651522110002930429339292982926529479
6100529285227004006000540104669287830024449100010001000500005001596128385293113101000100020002922929047116100110001000100003010000001000020001307393006909311735521619321338201256592844116075135971522010002931629189293122930129376
6100429386227007006000480004687288000024327100010001000500003001595928452293553101000100020002923729150116100110001000100003010000001000020001304091476892314506021730315238151251532852616360138011585610002926529236293242939729280
6100429320227006007100361004616288560124253100010001000500002001596228499293513101000100020002925429207116100110001000100213110010111000131101313192096917311834921620319238121147512846316442138041557010002942529394293532934129299
61004293512270171061003211004582287170024401100010001000500005001596428545293743101000100020002919029294116100110001000100423110010111000131001310491616890312015021672311538211150502840316467135511541010002936829214291622936529264
610042939622700800400030004742288601124306100010001000500017001597028350293963101000100020002911729152116100110001000100003010000001000030001296094266879313334821612316738131248532845316186136831567310002941429423292782937029283
6100429259227008002000481004590288790024327100010001000500005001594028386293733101000100020002905129154116100110001000100003010000001000020001298493806937310605221767314038191550572857116046136911538910002927029349292752936329277
610042931122800600600039000454028829002433710001000100050000500159652845729289329100010002000291812918311610011000100010000201000003100003000130459370695630911502162032063815458572838716313137901555710002933429421293142931429235

Test 2: throughput

Count: 8

Code:

  st1 { v0.2d }, [x6]
  st1 { v0.2d }, [x6]
  st1 { v0.2d }, [x6]
  st1 { v0.2d }, [x6]
  st1 { v0.2d }, [x6]
  st1 { v0.2d }, [x6]
  st1 { v0.2d }, [x6]
  st1 { v0.2d }, [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.5005

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk data (08)09l2 tlb miss data (0b)1e1f223a3f46494f51schedule 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)c2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? ldst retires (ed)? int retires (ef)f5f6f7f8fd
8020540051299000087311400271616125801001008000010080000500184002840018400424004229967330001801002008000020016000040054400431180201100991001008000080000100800140440080002002800022440151101161140060800001004004440043400444005640043
8020440042300000093004002816160258010010080000100800005001839448400294004240043299563300008010020080000200160000400424004711802011009910010080000800001008000014420080002002800022014051101161140039800001004004340043400434004340043
802044005429900001230140027161612580100100800001008000050018400284001740042400403018733000080100200800002001600004006340042118020110099100100800008000010080000044008000200188000216420351103251140037800001004004340044400434004340041
80204400422991000030040028161602580100100800001008000050018394484001740047400432995633000080100200800002001600004004240052118020110099100100800008000010080000000080000002800022420051101161140037800001004005540044400434004340055
8020440042300000093004002501602580100100800001008000050018394484001740042400662995533001180100200800002001600004004240043118020110099100100800008000010080000042008000210188000216420051101171140040800001004004440053400434004440043
80204400423001000021004003216160258010010080000100800005001840024400174005440044299553300008010020080000200160000400424004211802011009910010080000800001008000004200800160011800022420051101161140051800001004005540043400554004340055
802044004230000000300400271616125801001008000010080000500183944840017400424005229976330012801002008000020016000040042400431180201100991001008000080000100800150420180002002800022440051101161140051800001004004340053400434005240044
8020440042300001002000400370022580100100800001008000050018394484002940042400442995532999880100200800002001600004004040040118020110099100100800008000010080000144200800160108000224214051101161140039800001004004340043400554004340044
80204400542990000031140027160125801001008000010080000500184005240017400434004429967329998801002008000020016000040054400431180201100991001008000080000100800140440080002000800002440151101161140051800001004004340043400444005540044
8020440042300001003004002716166258010010080000100800005001839448400294004240044299553300008010020080000200160000400424005311802011009910010080000800001008000014000800021068000204214051101161140039800001004004340044400434004440043

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)09l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f243a3f46494f51schedule 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)c2cfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ea? ldst retires (ed)? int retires (ef)f5f6f7f8fd
80025400493100000000127014002700025800101080000108000050183942440017400424004229985330022800102080000201600004004240042118002110910108000080000108000003400800000028000223405020011611400390080000104004340043400434004340043
80024400423100000000030140027161602580010108000010800005018394244001740049400422997733002280010208000020160000400514004911800211091010800008000010800000000800020088000223405022011612400390080000104005140052400524005140043
80024400503100000000060040035160025800101080000108000050183935240017400424004229977330020800102080000201600004004240049118002110910108000080000108000003600800020028000223405020021612400390080000104004340043400434004340051
800244004231110010000300400271616025800101080000108000050183942440017400404004229984330020800102080000201600004004240058118002110910108000080000108000003400800020088000223405022011611400390080000104005140052400514005140043
8002440050310000100025814101401731616025800101080000108000050183942440025400404004229975330031800102080000201600004005040042118002110910108000080000108000003400800020088000203405022011612400390080000104004340051400414004340043
80024400423100000000458800400271616025800101080000108000050183942440017400404004229975330139800102080000201600004004240049118002110910108000080000108000003400800020028000223405022011622400390080000104004340043400434018340050
80024400403110001000900140027161602580010108000010800005018394244002540042400512998433003080010208000020160000400424005111800211091010800008000010800000000800021088000223405022011621400390080000104004340043400434004340043
800244017931100000006301400271616025800101080000108000050183942440017400424004229977330022800102080000201600004004240042118002110910108000080000108000003400800020028000223405022021622400390080000104004340043400434004140054
800244004231100000006900400271616025800101080000108000050183980840017400514004229977330022800102080000201600004004240042118002110910108000080000108000003400800020058000223405020041622400390080000104004340043400434004340043
8002440042310100000012001400351616025800101080000108000050183942440025400424004029975330030800102080000201600004005040042118002110910108000080000108000003400800020058000223405022011621400390080000104004340043400434004340043