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

ST3 (multiple, 2S)

Test 1: uops

Code:

  st3 { v0.2s, v1.2s, v2.2s }, [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: 2.000

SIMD/FP unit issues: 2.000

retire uop (01)cycle (02)03mmu table walk instruction (07)l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f2223243a3f464951schedule uop (52)schedule simd uop (54)schedule ldst uop (55)dispatch simd uop (57)dispatch ldst uop (58)simd uops in schedulers (5a)ldst uops in schedulers (5b)5f60696b6d6emap rewind (75)map stall (76)dispatch uop (78)map ldst uop (7d)map simd uop (7e)map ldst uop inputs (80)map simd uop inputs (81)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)st unit uop (a7)l1d cache writeback (a8)acafl1d cache miss st nonspec (c0)cfd0d2l1i cache miss demand (d3)l1i tlb miss demand (d4)d5map dispatch bubble (d6)d9dadbddfetch restart (de)e0eaebec? ldst retires (ed)? simd retires (ee)f5f6f7f8fd
6400729475228211400051100044912905222182214000200020002000200021611160001002178602891229225310400020002000400060002922329288116100110001000200000200000200061313393326887311643920299313638147293528644163071323314987200020002931029241291942921329293
640042917722716900012010046352913622184074000200020002000200021612160005021837029002293278304000200020004000600029206292871161001100010002000062000002000613126935969563084936204403300381916343428731161661336014767200020002922429312293712920429495
64004294592281614000120100466529123021814140002000200020002000216071600014021767028833292443104000200020004000600029218291051161001100010002000062000002000012864920968713032641202853106380314383528465163511335015140200020002911829146291482920729195
640042911421912150009100044952898502180474000200020002000200021633160008021780028943292463104000200020004000600029191291401161001100010002002262000002000613026909968353019638202213049380910303828454162811331914941200020002919129208292032914129311
640042925821919140103000045902901202181594000200020002000200021623160001102183302884729124310400020002000400860002922829282216100110001000200006200000200001284791616842303343620244308738066343328398163331342615075200020002916829205291652922129185
640042920821915130003100045442898122180874000200020002000200021611160001302176602877229204310400020002000400060002914229082116100110001000200000200013200001287391856873307183520251310838029333028473163131335315119200020002920929191291972914129177
64004292372181314000010004513290432218290400020002000200020002161816000702177402916229198310400020002000400060002926029266116100110001000200000200023200061286890306859304743220182308038128373628588161911320615157200020002925329191292302915029221
640042919321810150000000046362896200181174000200020002000200021614160001302174202884529159310400020002000400060002912029182116100110001000200006200000200061289092166794301233620238303138167323528358164791343614963200020002925229197291582926229166
640042914521891300012100044972896200181254000200020002000200021612160008021765028887292663104000200020004000600029171291861161001100010002000062000002000612786922068333074639201823038379611343328373162111314915228200020002925629292292892924829278
64004293062191715000300004654289660018063400020002000200020002160416000802175802895629224310400020002000400060002913529226116100110001000200000200000200061279892386816300853320142307438102333228524162461324715009200020002912829156291662918729225

Test 2: throughput

Count: 8

Code:

  st3 { v0.2s, v1.2s, v2.2s }, [x6]
  st3 { v0.2s, v1.2s, v2.2s }, [x6]
  st3 { v0.2s, v1.2s, v2.2s }, [x6]
  st3 { v0.2s, v1.2s, v2.2s }, [x6]
  st3 { v0.2s, v1.2s, v2.2s }, [x6]
  st3 { v0.2s, v1.2s, v2.2s }, [x6]
  st3 { v0.2s, v1.2s, v2.2s }, [x6]
  st3 { v0.2s, v1.2s, v2.2s }, [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): 1.0006

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk instruction (07)mmu table walk data (08)l2 tlb miss data (0b)18191e1f202224373a3f46494f51schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)696b6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)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)c2branch mispred nonspec (cb)cfd0d5map dispatch bubble (d6)ddfetch restart (de)e0e7? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
320207800716200000000300063670800301616025324699100165862160000100160000160000500207959112939468002408004580047032632010020016000016000020032000048000080046800431180201100991001008000080000100160000042001600022021600002420051130117118004101600001600001008004580045800468004580045
320204800446200000001230004149080030160025324262100166291160000100160000160000500223827613085208002408004480045032732010020016000016000020032000048000080045800441180201100991001008000080000100160000042001600020051600022420051090117118004201600001600001008004680046800458004580045
320204800456210000001200004576080029000253242221001637821600001001600001600005002078914130222180024080045800430312432010020016000016000020032000048000080044800451180201100991001008000080000100160000042001600620051600002420051090117118019901600001600001008004781581800458004780045
32020480044620000000030105704080029016025324479100164092160000100160000160000500191989513064588002508004580044032632010020016000016000020032000048000080045802121180201100991001008000080000100160000042001600020021600022420051100117118004201600001600001008004480046818858004580045
3202048004462100000003000527808003016160253271731001650071600001001600001600005002079441130638780023080044800460112632010020016000016000020032000048000080046800441180201100991001008000080000100160000042001600020001600022420051090117118004101600001600001008004580045800468004680046
32020480044621000000030004530080030016025324409100162864160000100160000160000500215703812943418002308004580044032732010020016000016000020032000048000080045800441180201100991001008000080000100160000042001600021051600000420051090117118004101600001600001008004580045800448004680045
3202048021162100000000000562608003016160253263661001638341600001001600001600005002159500129271980024080044800450326320100200160000160000200320000480000800458004511802011009910010080000800001001600000000160002209251600022420051090117118004301600001600001008004680045800458004780045
320204800446200000000400043360801961616025327236100164583160000100160118160000500207830012972318002408004480044032632010020016000016000020032000048000080045800451180201100991001008000080000100160000042001600021021600020420051090117118004201600001600001008004580223800468004680047
320204802066210000000300042210800301616025325804100163968160000100160000160000500207978812965498002308004580045032632010020016000016000020032000048000080044800451180201100991001008000080000100160000042001600020001600000420051090117118004201600001600001008004680045800458004780046
320204800446210000006300055710800291616025326421100166102160060100160000160000500207950812938508002408020980045032632010020016000016000020032000048000080045800451180201100991001008000080000100160000042001600021021600022420053670117118004201600001600001008004580045800458004680046

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk data (08)09l2 tlb miss data (0b)18191e1f2224373a3f46494f51schedule uop (52)schedule int uop (53)schedule simd uop (54)schedule ldst uop (55)dispatch int uop (56)dispatch simd uop (57)dispatch ldst uop (58)int uops in schedulers (59)simd uops in schedulers (5a)ldst uops in schedulers (5b)696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map ldst uop (7d)map simd uop (7e)map int uop inputs (7f)map ldst uop inputs (80)map simd uop inputs (81)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 mispred nonspec (cb)cdcfd0d5map dispatch bubble (d6)d9dadbddfetch restart (de)e0? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
32002780050600111000019006180036161602532638610163139160000101600001600005036791491297584800338005880051033332001020160000160000203200004800008005080050118002110910108000080000101600141536101600160017160002163614000501901217000121080042160000160000108004580045800468004580045
32002480045621000000000042320800290160253266561016565916000010160000160000502158943129513980023800448004503263200102016000016000020320000480000800448004411800211091010800008000010160000034001600020001600022340000501901317000121280041160000160000108004680050800468004580046
320024800446211100006190061921800440160253246851016660316000010160000160000502639847129761280026800578005803413200102016000016000020320000480000800588006011800211091010800008000010160014143662316007610201600021636140005019061700013780047160000160000108005180051800508005180059
32002480059621110000020004218180033161602532239110165494160000101600001600005023998761298795800268005980059032932001020160000160000203200004800008005880049118002110910108000080000101600151436101600160018160002163614000501901317000121280047160000160000108005080060800598005180060
3200248005062011000001900145518003416160253267191016484816000010160000160000503679362130021080033800518005003323200102016000016000020320000480000800528005211800211091010800008000010160014143401160016011716000216361400050190131700051380056160000160000108005180051800518005080051
3200248005162111000001400341918004316160253245251016000116000010160000160000503679347129247880034800508005003403200102016000016000020320000480000800598005111800211091010800008000010160014144400160016001616000216361400050190151700051280048160000160000108005280059800618005180059
3200248005162111000012210059051800370160253252081016476616000010160000160000503679345129018880034800508005003403200102016000016000020320000480000800448004511800211091010800008000010160000034001600021014160000234000050190131700061280047160000160000108005180060800528005180059
32002480058621100000030038431800291616025325487101660801600001016000016000050231692612946948002480045800450326320010201600001600002232000048000080050800511180021109101080000800001016000000001600020051600021634000050190617000131180055160000160000108005980051800518005980060
3200248005862011110006003906180035161602532397810160008160000101600001600005023999201289702800238004980045032732001020160000160000203200004800008006080058118002110910108000080000101600000360016000200216000203600005019091700012780055160000160000108014080046800468004980045
3200248004462000000003002840080029000253245001016433816000010160000160000501919775130078980023800448004903303200102016000016000020320000480000800588005811800211091010800008000010160014143630160016002016000200000050190141700051380055160000160000108006180052800598006180051