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

Test 1: uops

Code:

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

Issues: 4.000

Integer unit issues: 1.000

Load/store unit issues: 3.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)18191e1f2223243a3f464951schedule 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)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)dfe0? int output thing (e9)eaebec? ldst retires (ed)? int retires (ef)f5f6f7f8fd
63005287872330020010000310047422874300227894000100030001000300050001590308071703428268288353104000300070002876028856116100110001000300009030010003000060001324995476924313508420295314338281766592283111000154871261913954300010002872829002288252891728681
63004288942320010010006100047842872400226144000100030001000300050001590402081703128136290243104000300070002883328833116100110001000300000030000003000000001321594536935314708020083316538251962593282851000156671259713687300010002893728991288852879528882
63004289132321010000006100046872867730229074000100030001000300050001591207001702328312289823104000300070002878828697116100110001000300009030001003000090001303394016950316916820252328038222161593283381000155461266213914300010002890928886288312876628961
630042881823100000000000000461928707402261240001000300010003000500015907010181702628342288343104000300070002883928775116100110001000300009030007033000000001318294297008314906820150324738251559563281721000157481277413862300010002876628777287622869429154
63004289642310000010000000046942856044227674000100030001000300050001590300091704028248287253104000300070002883028709116100110001000300000030010003000090001310293536966314807720228323938282651512282081000156911239713679300010002891628865288852888428737
63004289792320000010003100047422861024227034000100030001000300050001590209001704528155289033104000300070002885328790116100110001000300000030000003000090001335495586937318517520308328638263054532281951000157051268513955300010002885028787287962897328920
63004290912320010000000000047682865630227714000100030001000300050001590209001703428251289163104000300070002879628775116100110001000300009030001003000090001327094326990321807720115324638232051553282311000152881262514060300010002886228844288282878928940
630042891923200000000012000046582928600227364000100030001000300050001590608101705428261289673104000300070002880728906116100110001000300009030000003000090001315394116950319216220245323738232455462282391000157171283313676300010002878428866287392901228915
63004288862320010010000300046872872100228104000100030001000300050001590505081703528188288563104000300070002883428781116100110001000300000030000003000000001323992206940320706820269315638242063583282911000156501251513855300010002883528956287972890928834
63004288392331000010000100047782874000227084000100030001000300050001590209101703728290288293104000300070002883228840116100110001000300009030000003000000001314291676905312327020180324538202459642282321000158041273213948300010002880228849289632892428787

Test 2: throughput

Count: 8

Code:

  st1 { v0.16b, v1.16b, v2.16b }, [x6], x8
  st1 { v0.16b, v1.16b, v2.16b }, [x6], x8
  st1 { v0.16b, v1.16b, v2.16b }, [x6], x8
  st1 { v0.16b, v1.16b, v2.16b }, [x6], x8
  st1 { v0.16b, v1.16b, v2.16b }, [x6], x8
  st1 { v0.16b, v1.16b, v2.16b }, [x6], x8
  st1 { v0.16b, v1.16b, v2.16b }, [x6], x8
  st1 { v0.16b, v1.16b, v2.16b }, [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.5005

retire uop (01)cycle (02)03l1i tlb fill (04)mmu table walk instruction (07)mmu table walk data (08)0918191e1f22243f46494f51schedule 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)60696b6d6emap 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)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
2402051200519300000000900120036161602532010080100240000801002400004707155519424012001701200401201238995539000732010020024000020056000012005212004211802011009910010080000800001002400000340024000210524000223400005110116111200398000024000080100120043120052120043120043120051
24020412004993000000003001200271616025320100801002400008010024000047071555193521120017012004212004289955390000320100200240000200560000120042120040118020110099100100800008000010024000003400240000101124000223400005110116211200398000024000080100120043120043120043120052120051
2402041200509310000000900120027161602532010080153240000801002400004707135519424012001701200421200428995539000032010020024000020056000012004212005011802011009910010080000800001002400000380024000200524000223400005110116111200478000024000080100120041120041120053120043120043
24020412004296400000039300120027161602532010080100242820801002400004707155519760012002601200421200548995539011032010020024000020056000012004212004011802011009910010080000800001002400000340024000210224000223600005110116111200398000024000080100120041120043120043120051120041
24020412005093000000018300120027161602532010080100240000801602400004707135519424012001501200501200428995539011032010020024000020056000012004212004911802011009910010080000800001002400000340024000200824000223400005110126111200488000024000080100120041120043120181120043120043
2402041200429310000001290012002716160253201008010024000080100240108470713551942401200170120042120042899553900003201002002400002005600001200421200531180201100991001008000080000100240000034002400021022400022000005110116111201138000024000080100120043120043120043120050120051
2402041200409640000013300120027161602532010080100240000801002400004707155519808012002401200501200428995539000032010020024000020056000012004212004211802011009910010080000800001002400000340024000200524000223400005110116111200398000024000080100120052120043120044120052120043
24020412004296400000478300120033016025320100801002400008010024000047071055413840120015012004212005289963390000320100200240000200560000120171120040118020110099100100800008000010024000003400240002001424000223400005136135111200398000024000080100120044120043120052120043120043
24020412004294900000003001200271616025320100801002400008010024000047071555197840120031012017812004390143990001320100202240360106356000012017712004211802011009910010080000800001002400000344024000210316224000023441005110316111200398000024000080100120041120052120043120043120043
24020412004293000000012300120035161602532010080100240000801002400004706645519424012001701200501200428995539000032026020024000020056000012004012004011802011009910010080000800001002400000340024000202224000203400005110116111200378000024000080100120043120051120043120043120043

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk data (08)09l2 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)696b6d6emap 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)c2cfd2d5map dispatch bubble (d6)d9ddfetch restart (de)e0? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
240025120052930110100019000112003716165253200108001024000080010240000470147552022012002701200521200588999539003932001020240000205600001200511200581180021109101080000800001024001514380024001601172400021634140502005161431200488000024000080010120059120054120062120048120059
240024120061930100100017000112003816166253200108001024000080010240000470141551969212002501200501200528999339003732001020240000205600001200521200591180021109101080000800001024001414360024001600202400621636141502004533331205438000024000080010120053120444120601120052122579
240024120053964100100151901011200361616225320010800102400008001024000047014755201741200270120051120058899943900403203012024000020560000120050120060118002110910108000080000102400141435202400160020240002160140502005160341200498000024000080010120060120054120061120059120060
240024120059930100100183190001120043161672532001080010240000800102400004701395520268121825012005212044890342129040532015520245405205641951220671200431180021109101080000800001024000004229024006500824000224200502008160441200498000024000080010120044120043120043120043120043
240024120042899000000030000120027161612532001080010240000800102400004701955519472120017012004212004289977390022320010202400002056000012004612006311800211091010800008000010240000000024001610260240002163400502004160541200478000024000080010120043120043120050120043120043
2400241200428990000000140010120027160025320010800102400008001024000047019855194241200170120042120042899823900223200102024000020560000120042120042118002110910108000080000102400000340024000200224000223400502003160331200568000024000080010120050120043120043120050120043
2400241200428990000000900001200271600253200108001024000080010240000470198551935212001701200521200428998239002032001020240000205600001200421200421180021109101080000800001024000003400240002002240002034140502004160551200578000024000080010120043120043120052120435120827
24002412004993000000003000012057216160253200108001024000080010240000470198551935212001701200471200428998539002232001020240000205600001200421200421180021109101080000800001024000003600240002805240002234140502002160431203428000024000080010120043120062120043120043120049
2400241200429301000000300001200351616025320010800102400008001024000047014755194241200170120042120049899853900223200102024000020560000120042120057118002110910108000080000102400000360024000200224000223400502002160351200398000024000080010120051120059120043120173120043
2400241200529311000000300011200271616025320010800472400008001024000047014755198081200240120042120042899773900223200102024000020560000120050120052118002110910108000080000102400000340024000210224000223400502005160351200478000024000080010120043120174120043120043120043