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

Test 1: uops

Code:

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

Issues: 3.000

Integer unit issues: 1.000

Load/store unit issues: 1.000

SIMD/FP unit issues: 1.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)18191e1f23243a3f464951schedule 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)5f696b6d6emap 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)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)e0? int output thing (e9)eaebec? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
620062921923402200200001358910459628757111807530001001100210011000100010005000109408016102169802870429077172930031002100030032006289842910821610011000100010024221005006251001000201317493986899316835120436325338131649582855310051573712953140911000100010002908229110290922914429047
62004290082340200116112279176104628290440018284300310011001100210001001100250051092980002218040289592928914483000100010023006200229230291783161001100010001002221100010410000200013281932868963122134820572332338182047512866710031592113048142981000100010002915029830293502921729413
62004291772330180020000258110148952889000180133000100010011000100010011000500010908800072175402862429141310300010001003300020002872128909116100110001000100212010014071000000022931332895436890321695320186326138201347492821810001572012707137541000100010002872628833289822886728873
62004287742310190020000010045632946200183393033100910081005100810071008504011041804002201302921229436682493024100910123027201829555294291716100110001000101140010160366361011001001349891306888311065020307315738172145482822510001545812742138071000100010002867328859287252884928672
620042867022202100250100100475028628001771930001000100010001000100010005000109058000421729028539288253303000100010003000200028680286301161001100010001001003100000110000000013138938869273132105820154313338161548532826610011563612805136551000100010002877528762288162874828853
62004287282230180018001000047632864900177883000100110001000100010001000500510905800042172702858428872930300010001000300020002863128751116100110001000100000010000001000020001329293107029309335120286319538212058502834110001573312827136461000100010002885728943287962888128852
62004288562230220014000132100468128780001789830001000100010001001100010005000108978000621526028537288323103000100010003000200028798287442161001100010001002701100101311000001101307092596944310165120272321438171551482828810001544812750137301000100010002887028967288472888828789
62004288252230241020000001047032876300179113003100010001000100010001000500010908800032174502858928706310300010001000300020002873028717116100110001000100322010010111000001001319195176907314094920234329938231251532834910001568512918138241000100010002885328852287672892928858
62004287882230221022000020047062871200177583000100010001000100010001000500010902800002169902861928958310300010001000300020002881928739216100110001000100222010020011000000001315493866892313495120262324638191554512836310001565612649139731000100010002877128727289072882828828
62004287642240190019000011046572881300177933000100010001000100010001000500010901800002177402859428719310300010001000300020002870728841216100110001000100302010000301000020001328293416905312674920290324538222051492836010001570312644137651000100010002877728848288402879128732

Test 2: throughput

Count: 8

Code:

  st1 { v0.1d, v1.1d }, [x6], x8
  st1 { v0.1d, v1.1d }, [x6], x8
  st1 { v0.1d, v1.1d }, [x6], x8
  st1 { v0.1d, v1.1d }, [x6], x8
  st1 { v0.1d, v1.1d }, [x6], x8
  st1 { v0.1d, v1.1d }, [x6], x8
  st1 { v0.1d, v1.1d }, [x6], x8
  st1 { v0.1d, v1.1d }, [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.0005

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)60696b6d6emap 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)c2cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
16020680040620110000276700239118002511075252426568010084257800008010080000800004358994375884864442308001508004080040599243599982404482008000080000200240000160240800408004011802011009910010080000800001008000770008000811148000082871051101161180037800008000080000801008004180041800418004180162
160204800406211000000710305618002511111252435278010080161800008010080000800004358990375884864665708001508004080040599243599982401002008000080000200240000160000800408004011802011009910010080000800001008000892500800080011038000182570051101161180037800008000080000801008004180041800418004180041
1602048004062011000012120011618002501152524173980100825878000080100801168000043589903758848646157080015080040800405992435999824010020080000800002002400001600008004080040118020110099100100800008000010080008102500800080088000182571051101161180037800008000080000801008004180041800418004180041
16020480040620110000132700242018013311112252452638010082562800008010080000800004358990375884864491608001508004080040599243599982401002008000080000200240360160000800408004011802011009910010080000800001008000872501800080178000182570051101161180142800008000080000801008004180041800418016180041
160204800406201010000900247218002511102252443538010081223800008010080000800004358990375884864658908001508004080040599243599982401002008000080000200240000160000800408004011802011009910010080000800001008000772500800080088000172571051101161180037800008000080000801008004180041800418004180041
160204800406201000001327005163180025911125245209801008016180000801008000080000435899037588486459830800150800408004059924359998240100200800008000020024000016000080040800401180201100991001008000080000100800088000800080088000172570051101162180037800008000080000801008004180041800418004180041
160204800406201110000120020511801471110225245263801008253680000801008011680000435899037588486491850800150800408004059924359998240100200800008000020024000016000080040800401180201100991001008000080000100800679001800081088000082571051101161180037800008000080000801008004180041800418004180041
160204800406201100000120025771800251011225242266801008426780000801008000080000435899437588486555250800153800408004059924359998240440200800008000020024000016000080040800401180201100991001008000080000100800077001800680088000072570051101251180037800008000080000801008004180041800418004180041
160204800406201000001290013718002510116252402228010080118800608010080000800004358990375884864615708001508016380040599243599982401002008000080000200240000160000800408004011802011009910010080000800001008000772500800070011800017070151101161180037800008000080000801008004180041800418004180041
1602048004062110100007002173180025111122524214880100801588000080100800008000043589903758848643892080015080040800405992435999824044020080000800002002400001600008004080040118020110099100100800008000010080008725018000800118000082571051102161180037800008000080000801008004180041800418004180041

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk instruction (07)mmu table walk data (08)09l2 tlb miss data (0b)18191e1f2224373f46494f51schedule 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)61696b6d6emap 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)91inst 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)a9acafatomic or exclusive succ (b3)b6bcl1d cache miss st nonspec (c0)c2cfd0d2d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
1600268004062100000018400563380025880252447048001084697800008001080000800004358429375884865408108001508004080040599463600202400102080000800002024000016000080040800401180021109010108000080000108000000008000120180001001005022502162280037800008000080000800108004180041800418004180041
160024800406210000000000108002588325241167800108069280000800108000080000435842937588486570810800150800408004059946360020240010208000080000202400001600008004080040118002110901010800008000010800000210080000103800010012105020002162280037800008000080000800108004180041800418017980041
16002480040620000000020012968002580025240590800108563780000800108000080000435842937588486461530800150800408004059946360020240010208000080000202400001600008004080040118002110901010800008000010800000240080001100800010012145022502162280037800008000080000800108004180041800418004180041
1600248004062000000004009188002500325244704800108569280000801268000080000435842937588486540850800150800408004059946360020240010208000080000202400001600008004080040118002110901010800008000010800620210080000000800010012105020502162280037800928000080000800108004180041800418004180041
16002480162620000000040046948002580025240590800108375780000800108000080000435842937588486427720800150800408004059946360020240010208000080000202400001600008004080040118002110901010800008000010800000210080001101800010012105020502162280037800008000080000800108004180041801628004180041
16002480040621000000330006948002588025244704800108058080000800108000080000436080137588486400190800150800408004059946360020240010208000080000202400001600008004080040118002110901010800008000010800000210080001001800010012105020502162280037800008000080000800108004180041800418004180041
16002480040620000000138400126280025887125241392800108001880000800108000080000435842937588486540850800150800408004059946360020240010208000080000202400001600008004080040118002110901010800008000010800000210080001001800610012105020502162280141800008000080000800108004180167800418016280041
16002480040642000000124004696800250832524470480010805808000080010800008010843584293758848645323080015080040800406000836002024001020800008000020240000160000800408004011800211090101080000800001080000021008000110780001001005020502162280037800008000080000800108004180041800418004180041
160024800406420000000900047388002588025242350800108001580000800108000080000435842937588486540850800150800408004059946360020240010208000080120202400001600008004080040118002110901010800008000010800000210080001001800010012105020502162280037800008000080000800108004180041801628004180041
16002480040642000000124001280025881252456438001080580800008001080000801084358429375884864207608001508004080040599463600202400102080000800002024000016000080040800401180021109010108000080000108000002180308000100380000001005020502252280037800008000080000800108004180041800418004180041