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

LD1 (multiple, post-index, 4 regs, 8H)

Test 1: uops

Code:

  ld1 { v0.8h, v1.8h, v2.8h, v3.8h }, [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, 1
  mov x1, 2
  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)mmu table walk instruction (07)mmu table walk data (08)09l2 tlb miss instruction (0a)l2 tlb miss data (0b)0e0f18191e1f223a3f43464951schedule 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 load (98)inst ldst (9b)9dl1d tlb access (a0)l1d cache miss ld (a3)ld unit uop (a6)l1d cache writeback (a8)a9acafb5b6bbl1d cache miss ld nonspec (bf)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
640052874722440003000001200482828480043226095000100040001000400050002071671695628292288183105000400050002862328559116100110001000040008400300240005168001340695447032322416619702311938152366663282391000155241276613722400010002893528690287362884928813
64004284822231100100000800477128460040227325000100040001000400050002070341696128396287853105000400050002873328655116100110001000040008400300240026140001342095876945326506619736317138191868663281231000155801275013584400010002872728612286452873128724
640042869222221001000000004784286520002278450001000400010004000500020713616942284112878531050004000500028639286751161001100010000400084002000400361412001338794276989323016619759320738192770643281551000154351229913707400010002873928864286662856428709
64004286862232100100000800476128734034227445000100040001000400050002071581693128389287533105000400050002865628692116100110001000140000400000040026148001307694896917308206519774314538161771662282491000153821261014182400010002883628686287552872228758
6400429625226110010000000048662862200022761500010004000100040005000207174169262843828761310500040005000287022877111610011000100004000840000022440024048001343495466992319306719803316038161864703282221000153111251813954400010002878328734287672876128690
6400428869223110000000012880479528446000228135000100040001000400050002070621694828275288443105000400050002869628595116100110001000040008400000540066100001332195207037322309119858317538192178713281601000153071240513838400010002866028771288062870128711
640042879922330101000001200484128594200227095000100040001000400050002071531695928383287293105000400050002862828705116100110001000040000400000440020048001329593547006316206019739316338202161713281811000156391254813906400010002877328882288142874328746
640042881122311001000000004850286450042277050001000400010004000500020731116929283052881731050004000500028606285241161001100010000400084006000400600412001319494156990324606319704319938101365653282031000155601276113997400010002859928708288912869128767
6400428696222110010000012004844285740432278550001000400010004000500020717316922282972876531050004004500028738286141161001100010000400084000001340066000001322093166995316506619829319738152569663281401000152761275014072400010002882628702285842880228735
640042876622420000000000004749286200432255650001000400010004000500020720416947283472879531050004000500028690287421161002100010001400004000006400660012001327694827023322306619785320838102665673281511000151931262813739400010002868228802287742876728708

Test 2: throughput

Count: 8

Code:

  ld1 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8
  ld1 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8
  ld1 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8
  ld1 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8
  ld1 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8
  ld1 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8
  ld1 { v0.8h, v1.8h, v2.8h, v3.8h }, [x6], x8
  ld1 { v0.8h, v1.8h, v2.8h, v3.8h }, [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.3341

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk data (08)09l2 tlb miss data (0b)0e0f18191e1f2223243a3f4346494f51schedule 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)67696d6emap 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)92inst branch cond (94)inst int alu (97)inst simd load (98)inst ldst (9b)9d9fl1d tlb access (a0)l1d tlb miss (a1)l1d cache miss ld (a3)a5ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acafb5b6bbl1d cache miss ld nonspec (bf)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)eaebec? ldst retires (ed)? int retires (ef)f5f6f7f8fd
32020510673682710111000650100010672801818125400100801003200008010032000048049746782300106707106714106717266623267194001002003200002004000001067321067321180202100990100100800008000001003200181844032005910059320040015801810005110117111067108000099132000080100106736106715106747106733106733
32020410673282810001000650100210670821818172540010080100320000801003200004804764710870010670710673610681926881326715400100200320000200400000106732106732118020110099110010080000800000100320019180032005810024573200006159441800005109117111067338000090032000080100106733106733106737106733106747
320204106732828110001001800000106699001816254001008010032000080100320000480473472755101067071067131067352668832671940010020032000020040000010673210673211802011009901001008000080000010032001819440320059000623200400159441800005109117111067298000099132000080100106733106737106733106714106733
3202041067328271001000030000001066992181817254001008010032000080100320000480476470868101066891067141067142668532671440010020032000020040000010673210673211802011009901001008000080000010032001918430320059002583200410059451800005109116111067298000099132000080100106733106718106715106733106715
320204106732827110011007600002106699018916254001008010032000080100320000480496466788401066881067131067322668132669640010020032000020040000010671410671311802011009901001008000080000010032001818430320059000593200416159441810005109117111067118000099132000080100106733106715106735106733106733
320204106732827100000001800100106699018181625400100801003200008010032000048049846782300106707106736106732266803267144001002003200002004000001067321067131180201100990100100800008000001003200201845032001800058320041615901800005110116111067298000099132000080100106733106737106714106715106733
3202041068058271000000065000021067173181816254001008010032000080100320000480497470697601067071067321067422667932671440010020032000020040000010673210673211802011009901001008000080000010032001818440320018001183200406159441800005109116111067298000099032000080100106737106737106733106733106733
32020410673282710000000640000310671731818025400100801003200008010032000047394847069760106707106732106736266803267194001002003200002004000001067321067321180201100990100100800008000001003200181800320059002583200416159441800005110116111067148000099032000080100106733106733106733106733106733
3202041067148281111010064001011067172181816254001008010032000080100320000480474466926501067071067321067172666332671540010020032000020040000010673210673211802011009901001008000080000010032001818440320058000593200410058441800005109117111067298000099132000080100106733106714106733106733106733
3202041067328271000000064000021066993180162540010080100320000801003200004804974669265010670710673210673226680326697400100200320000200400000106732106732118020110099010010080000800000100320018180313200590008533201716158441800005121126111067298004999032000080100106883106714106715106884106715

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)09l2 tlb miss data (0b)0e0f18191e1f22233a3f4346494f51schedule 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)6067696d6emap 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)92inst branch cond (94)inst int alu (97)inst simd load (98)inst ldst (9b)9d9fl1d tlb access (a0)l1d tlb miss (a1)l1d cache miss ld (a3)a5ld unit uop (a6)l1d cache writeback (a8)a9acafb5b6bbl1d cache miss ld nonspec (bf)c2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)eaeb? ldst retires (ed)? int retires (ef)f5f6f7f8fd
3200251067298270101100480102106693344172540001080010320000800103200004800424735007001067101067311067272668032671440001020320000204000001067311067271180021109110108000080000010320000045032004200332004261424505019101610910672980000141032000080010106732106709106709106732106732
32002410673582800011004800021067163401725400010800103200008001032000048002446904170010670610673510673326682326691400010203200002040000010673110672711800211090101080000800001103200000003200000041320042614200502010168111067248000010032000080010106732106709106732106728106732
32002410672782700000004801011067233415222540001080010320000800103200004800444716548001067151067361067362668532671040001022323456204000001067311067271180021109510108000080000110320000045032004200632000061414505020111610810673180000141032000080010106709106732106709106732106728
3200241067088270000000001021066963015225400010800103200008001032000048004446664150010670210672710673126732326695400010203200002040000010671910688311800211091101080000800000103200000450320042004232004260424505019101612121067098000014032000080010106728106732106728106713106709
3200241067088280000010480102106716015417254000108001032000080010320000480048473515500106706106731106731266791226691400010203200002040000010670810670811800211095101080000800001103200000450320042008373200426104505020111671210672480000101032000080010106861106728106728106728106728
32002410672782800011004801001067123415212540018880010320000800103200004800464668227001067111067131067132666232671040023520320000204000001067311067121180021109510108000080000110320000045032000000453201726142450502013167910672880000101032000080010106732106732106732106736106732
3200241067318270001000088002106732340192540001080010320130800103200004800484734671001068431067081067352665632671440001020320000204000001067311067271180021109110108000080000010320000045032004200423200426100050208161081067328000001432000080010106732106732106733106729106728
3200241068558270000100210010106716344034400010800103200008001032000048004447346710010670610672910672726735326718400010203200002040000010673110690811800211090101080000800001103200000003200420003200426142450502010179910673280000101032000080010106728106732106732106732106709
3200241067088270001110480012106720044952540001080010320000800103200004800484734671001066831067311067312665632671440001020320000204000001067081067271180021109110108000080000010320000045032004210032004261424505032111610101067288000010032000080010106888106732106739106740106728
3200241067278270001100120010106869340050400010800103200008001032000048004646550560010671210673710673626688326784400010203200002040000010673110670811800211095101080000800000103200000003200420042320000604200501971613101067058000014032000080010106732106732106882106732106732