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

Test 1: uops

Code:

  st1 { v0.16b, v1.16b, v2.16b, v3.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): 4.000

Issues: 5.000

Integer unit issues: 1.000

Load/store unit issues: 4.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)l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f223a3f464951schedule 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)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)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)? int retires (ef)f5f6f7f8fd
640052929023510404000650477229149002316950001000400010004000500021608517053286862929931050004000900029354292511161001100010004005412140040144000012000131619505698030991492029932543813124849286561000161351322014033400010002938529319293592947229401
640042921923701203100640476329180442317750001000400010004000500021608217028285992942331050004000900029303292781161001100010004005512140040184000412400130719349696131710442035932503815123846287121000162931309614574400010002931729470293062943729320
6400429333235003030001800466529033002320150001000400010004000500021629117017286512948631050004000900029295292831161001100010004000012040000004000012000132679404699731761382044832503816133844287411000161891317214254400010002945529504293392933829332
640042931223600202000010471829212002320750001000400010004000500021620417044287032942531050004000900029318293421161001100010004000012040000034000012000132229488699531571422042032873817174440286501000162241316614446400010002934029487294712928929247
64004293272350120310005047212907544232565000100040001000400050002161921701928662294463105000400090002921729154116100110001000400550140040044000412410133889254689331691452034531993813124240286061000161581315514459400010002923929481294482935529398
640042934823500103000010464829099002333450001000400010004000500021611417050287502945231050004000900029271292501161001100010004000012040000004000012000131739476699431270452039231803813114542286631000160661316514348400010002938129434294632933529478
6400429447237004040000104645290870023218500010004000100040005000216143170292864329366310500040009000293972922811610011000100040000120400000040000000013140943068863137044203873281381053946286051000163901280414264400010002929329252294422926729559
64004295092360111210035046342911544233665000100040001000400050002161431705128507293783105000400090002924729183116100110001000400840140040144000416410131449375693031741432041533673810144047286541000161601305214241400010002925529400294322947829385
640042929323600102000241048142910300232135000100040001000400050002161831702528660294163105000400090002920429286116100110001000400000040000004000212000132609339690331021412045132643814144138286501000162021311214462400010002936129318295242938329326
640042942523601313000050462229100002330950001000400010004000500021615517042285922934131050004000900029121291841161001100010004000012040000034000012000132619512695231600452045132273814174541286171000162711321314147400010002935229328293352938629463

Test 2: throughput

Count: 8

Code:

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

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)60696a6d6emap 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? int output thing (e9)? ldst retires (ed)? int retires (ef)f5f6f7f8fd
320205160042128500000003100016002716165162094009928030332042080332320864477415739306001609640160514160994806753800324002372003210802027210801609761611247180201100991001008000080000100320000000032000200232000020005110217111600378000032000080100160051160051160186160041172130
3202041723391404001110423000001600360085254001008010032006080100320000452853735985601601341231600401601767998813805034002372003201202007200001600631600543180201100991001008000080000100320015174401320076101832000216441405121226111601688000032000080100160190160055160189160055160184
3202041600541242100001132190011160049161674534001008012932006080100320000462343736046001601480160185160054799923801324002372003200002007202701601771600472180201100991001008000080000100320014144400320016001632000216441405110217111600518000032000080100160065160064160055160055160055
320204160053124111000001800011600371616425400100801003200008010032000040051973599080160027016005316005280002380033400100200320000200720000160054160052118020110099100100800008000010032007715442903200163124320002234005110117111600398000032000080100160043160043160043160043160043
32020416004312940000011443001016002716160534001898010032000080129320108400526736428411600180160042160177799803801194001002003200002007200001601791600421180201100991001008000080000100320000000032000220758320002242005133117111600648116332000080100160044160043160043160314160310
320204160086129100000112910010160025161615440018980100320000801003200004804997359448016001701600421600427997838002540010020232012020072000016004216005421802011009910010080000800001003200000420032000210790320062242005121426211600398002932000080100160043160043160043160177160188
320204160040129501001015330010160036161602540010080158320000801003200004611837359424016001701600421601778005712800244001002003200002007200001600401600402180201100991001008000080000100320000034003200022075032000220005110117111602778005832000080100160185160051160059160051160043
3202041600421295001020153970000160027161607440010080160320120801003202164005247369312016049001600501600427998038002440010020032012020072000016005116017321802011009910010080000800001003200000340032000200232000200005110117111600378000032000080100160041160050160041160041160043
3202041600401285000000360000160027161602540010080100320000801003200004005247359424016001701600401600427997838002440010020032000020072000016004216005411802011009910010080000800001003200000000320002905320002234005110117111600398000032000080100160043160043160043160043160051
3202041600421285000000153000016002501602540010080100320000801003200004005247359424016001701600401600407998038002440010020032000020072000016005016004211802011009910010080000800001003200000000320002005320002234005110117111600378000032000080100160041160052160041160052160043

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk instruction (07)mmu table walk data (08)09l2 tlb miss data (0b)18191e1f22233a3f46494f51schedule 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)c2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ea? ldst retires (ed)? int retires (ef)f5f6f7f8fd
3200251600421241001000276310016002516160254000108001032000080039320000400074736414016001716004916004279980380032400010203200002072000016004216005011800211091010800008000010320015143400320002002320062234050203173316015780000032000080010160043160043160043160043160180
3200241600631240000000351300016004316160534000108003932000080010320000400074735980816001716005016004279980380024400010203200002072000016005116017111800211091010800008000010320000238003200020016320002234050203173416005680000032000080010160041160136160043160043160043
320024160174124000000075911001600251600474000108001032000080010320000400074735935216014316004216005079988380131400010203200002072000016017516019111800211091010800008000010320000034003200020018320002034050202173216016780000032000080010160041160043160041160176160043
32002416004212410000104830001600271616025400010800103200008001032000048004973598081600251600421600508006438003340001020320000207200001600421600511180021109101080000800001032000003400320002000320002234050203173316003980000032000080010160043160043160043160043160043
320024160042124100000001820001600271600464000108001032000080010320000400074736457216001716004216004279980380121400010203201202072027016031716017421800211091010800008000010320180034582320185003063320182234250564533416039780029032000080010163287163793161209160434160437
3200241604471244101043729355000160034161637425400010800103200008001032000048004973593521600171600511600427998038002440001020320000207200001600421600421180021109101080000800001032000003400320002008320002234050202173316003980000032000080010160043160043160050160052160043
3200241600491241000000120000160027161602540001080010320000800103200004000747359424160017160042160040799803800244000102032000020720000160040160042118002110910108000080000103200000000320002105320002234050203173316004780000032000080010160043160043160043160043160051
320024160042124000000030960001600271616025400010800103200008001032000040007473594241600171600421600427998038002440001020320000207200001600421600421180021109101080000800001032000003400320002002320002234050203173316004780000032000080010160043160041160043160041160052
3200241600421241000000930001600271616025400010800103200008001032000040007473593521600251600401600507998938006940001020320000207200001600401600421180021109101080000800001032000003400320002108320002036050203173316004780000032000080010160043160043160041160043160041
3200241600401241000000901001600271616025400010800103200008001032000040007473594241600171600421600427998038002440001020320000207200001600421600421180021109101080000800001032000003400320002002320002234050203173316003980032032000080010160043160043160043160041160043