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, 2 regs, 8H)

Test 1: uops

Code:

  st1 { v0.8h, v1.8h }, [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): 2.000

Issues: 2.000

Integer unit issues: 0.000

Load/store unit issues: 2.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)18191e1f22233a3f464951schedule uop (52)schedule ldst uop (55)dispatch ldst uop (58)simd uops in schedulers (5a)5f696d6emap 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)st unit uop (a7)l1d cache writeback (a8)a9acafbcl1d cache miss st nonspec (c0)c2cfd0d2l1i cache miss demand (d3)l1i tlb miss demand (d4)d5map dispatch bubble (d6)d9dadbddfetch restart (de)e0eaebec? ldst retires (ed)f5f6f7f8fd
620052965024041122123342317710461829259222457620002000200210000171606828832296163102000200040002938329428116100110001000200004200010020002401309692486968317704821578331038181346512873916162136051561420002933429469294532940129521
62004293692381000010001510046882909322246412000200020001000021606028616293513102000200040002922429196116100110001000200006200000020000401317894336939312704720717335038171240492853716224136541540120002946429363294652947029412
62004293862370000000002410046262891400242982000200020001000021608628724294023102000200040002921429225116100110001000200000200000020000001223377056426289504924038341738207448512893516236136831562820002940529408293202945129245
6200429425227100000000000046182892000244092001200020001000171611128653294283102002200040002923729345116100110001000200000200000020000401325792607005314704720788327438201042452859616314136301539720002938429316293842938329409
6200429335228000000000000047032906800243182000200020001000011606128508293663282000200040002918329237116100110001000200004200000320000401304592016974311204620771324738131550462861016413134201526120002938729509293562934129476
6200429334228100000000010047012886300242312002200020001000011624328570293223282000200040002923229255116100110001000200000200000320000401288293026969310614620850328338151745452859916156134471543220002931729337294092951229312
6200429332227100001000010046802899800243072000200020001000011625228570293533102000200040002919329197216100110001000200024200000020000401308394866981314614920684327538141245442853516175135521511920002933129482292652930629339
62004294422271000000101211046832890100241842000200020001000011607628656293933102000200040002927529274116100110001000200000200000020000401330695076893313924220786323938131246442860216177134181542820002932129344293522935829326
6200429430228100000100010047152898700242722000200020001000041608528528294173102000200040002926929152116100110001000200000200000020000401322495566950319814520683337138141647462868015997136681573720002927029478293572933229377
6200429329228100000000010046732898300242602000200020001000031608428549294163292000200040002933929234116100110001000200004200000020000401317493726968320704820777328638161441412855515976134431561720002930529350293222923029501

Test 2: throughput

Count: 8

Code:

  st1 { v0.8h, v1.8h }, [x6]
  st1 { v0.8h, v1.8h }, [x6]
  st1 { v0.8h, v1.8h }, [x6]
  st1 { v0.8h, v1.8h }, [x6]
  st1 { v0.8h, v1.8h }, [x6]
  st1 { v0.8h, v1.8h }, [x6]
  st1 { v0.8h, v1.8h }, [x6]
  st1 { v0.8h, v1.8h }, [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.0005

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk data (08)09l2 tlb miss instruction (0a)l2 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)60696d6emap 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)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
160205800426200000000030008002701602516010010016000010016000050036798560800178004280042599553600001601002001600002003200008004280042118020110099100100800008000010016000003400160000122160002234000005110116118004801600001008004380043800438004380043
16020480042621000100012300080036161602516010010016000010016000050036798560800178005080042599553599981601002001600002003200008004280180118020110099100100800008000010016000003400160002002160000234000005110116118003901600001008005080043800438005080043
1602048004262100000000900080027160225160100100160000100160000500367942408001780051800505995536000016010020016000020032000080040800491180201100991001008000080000100160000034300160002005160002234000005110117118003701600001008004380051800438004380052
160204800426200000000031008003516002516010010016000010016000050036794240800178004280049599553600001601002001600002003200008004080050118020110099100100800008000010016000003400160002006160002234000005110116118004701600001008004380052801818045680051
16020480040621000000000000800271616752516010010016000010016000050036793520800178004280042599553599981601002001600002003202408004280042118020110099100100800008000010016000003400160002008161382234000005110116118003901600001008005280043800438004380043
1602048004962000000000300080050161602516010010016000010016000050036794240800258004280042599553600001601002001600002003200008004280042118020110099100100800008000010016000003400160002005160002034000005110116118003901600001008004380043800438004380043
16020480182620000000012000080027161602516010010016000010016000050036793520800248004280042599533599981602082001600002003200008004280042118020110099100100800008000010016000003400160062105160002034000005110125118004701600001008004180041800418004380129
16020480049620000000013230008003516162251601001001600001001600005003679424080017800508005159955360000160100200160000200320000800508005011802011009910010080000800001001600000340016000200800160002234000005110116118003901600001008004380043800438004380043
1602048005062000000000300080035161622516016010016000010016000050036794241801468004280042599553600001601002001600002003200008004080042118020110099100100800008000010016000003600160002005160002234000005110116118004701600001008004380043800508018280043
16020480042620000000018300080027161602516010010016000010016000050036794240800178018080049599553600001601002001600002003200008005180040118020110099100100800008000010016000003400160002005160002234000005110116118003901600001008004380041800528004380043

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk instruction (07)mmu table walk data (08)l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f2223243a3f46494f51schedule 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)61696d6emap 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)e0ea? ldst retires (ed)? int retires (ef)f5f6f7f8fd
160025800426200000000186170001800371601251600101016000010160000503680052080029800638005259989360022160010201600002032000080054800421180021109101080000800001016000000101600020051600024000502033163232800510160000108005580065800548005580048
160024800556211000100375010008002716160251600101016000010160000503679448080017800408018059977360043160010201600002032000080047800471180021109101080000800001016001414440016001612171600021644141502030163432800370160000108004180043800438004180043
16002480042621000000040822000180037161632516001010160000101600005036804380800228005380052599893600201600102016000020320000800438004211800211091010800008000010160000000016000200216000224200502035163433800520160000108005580055800538005580064
160024800546211000000447300008002716161251600101016000010160000503684332080017800428004059989360034160010201600002032000080047800541180021109101080000800001016001415440116001600171600021644140502032163535800390160000108004380043800438004480044
160024800426200000000576171001800331616125160010101600001016000050367969208002780054800595998736003016001020160000203200008018180040118002110910108000080000101600000420016000400616000224200502032163232800510160000108005580064800558005580064
1600248005562010001015193100080028161611251600101016000010160000503679352080017800438004259977360040160010201600002032000080052800521180021109101080000800001016001516520016001611151600021644141502024162431801590160000108004480043800438018480043
160024800426200000000468181001800491616025160010101600001016000050367990808002980047800545998736002216001020160000203200008004080042118002110910108000080000101600000420016000010516000224200502033163315800440160000108006580053800568006480048
160024800526201000100492300008002816167325160010101600001016000050367935208001880042800435997736003316001020160000203200008005480054118002110910108000080000101600141444001600161017160002160141502035163325801580160000108004380043800418017980044
160024800436210000000513201001800391616125160010101600001016000050368000408002280054800545998736002216001020160000203200008004080043118002110910108000080000101600000029016000000516000224200502034162534800512160000108005580053800568005580064
160024800546201000100158723790000800271600251600101016000010160000503679352080015800428004359975360034160010201600002032000080054800542180021109101080000800001016001515510116001601161600021644141503436163433800510160000108004380043800448004380043