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

LD3R (post-index, 4H)

Test 1: uops

Code:

  ld3r { v0.4h, v1.4h, v2.4h }, [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.006

Integer unit issues: 1.000

Load/store unit issues: 1.000

SIMD/FP unit issues: 3.006

retire uop (01)cycle (02)03l1i tlb fill (04)mmu table walk instruction (07)mmu table walk data (08)l2 tlb miss instruction (0a)l2 tlb miss data (0b)0e0f18191e1f2223243a3f43464951schedule 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)5f6061696d6emap 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 load (98)inst ldst (9b)9dl1d tlb access (a0)l1d cache miss ld (a3)ld unit uop (a6)l1d cache writeback (a8)acafldst x64 uop (b1)b5bbl1d cache miss ld nonspec (bf)c9cfd0d2l1i cache miss demand (d3)l1i tlb miss demand (d4)d5map dispatch bubble (d6)d9dadbddfetch restart (de)e0ld nt uop (e6)? int output thing (e9)eaebec? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
6400528639223320000000300004749283790001649050091000300610001000300010005000500235708100228302859828642310500010003000200030002867628562116100110001000010000100007610010010013395959269773175049197013121380813484728154010001568812390136481000300010002851828641285762861928671
6400428625224010000000000004795282710101642150091000300610001000300010005000500135681000228692846328730310500010003000200030002860228538116100110001000010003100101010000230013372950669703198049196383127381616535728147010001530112469136971000300010002866928620286702879028812
64004286582220000000003000047002835500016555500910003006100010003000100050005000356825002283328472285883105000100030002000300028620285651161001100010000100001001015910010213013123968869903255048196503166381614475928040010001535112601135321000300010002862028698287092853728605
6400428753223010000000000004802282200001652250001000300610001000300010005000500035632500227962856128748310500010003000200030002857328580116100110001000010002100101210010000013208953570403203147197473201381212505928111010001550912422138051000300010002880228604287062875128737
640042864422200000000020000474828373010165585006100030091000100030001000500050003569220022820285152870231050001000300020003000285772861411610011000100001000210020910000222013364964570193249048196503184380917525028139010001540512650135231000300010002861628711288032869428705
6400428699223020000000000004764282821001653350061000300610001000300010005000500035711000228452861528685310500010003000200030002849528590116100110001000010002100001610000202013407976969863192052196563117381720504828135010001524312412136141000300010002874628649286312878728676
6400428671222100100000200004784283480001642150061000300610001000300010005000501035653000228182874428738310500010003000200030002875328683116100110001000010002100006610000022013439963770663240050197153238381620454728192010001527712638137201000300010002866328756282962871428704
6400428766223010100000200004842284441101654250061000301210001000300010005000500035707100228342859428729310500010003000200030002866228567116100110001000010002100009210010122013199966170563186152197073164381415494628163010001541312561136561000300010002862128724286582874528710
64004287182220100000002000048922835200016573500010003009100010003000100050005000356710002281628464286293105000100030002000300028698285151161001100010000100001000013210020212013325941369953173052197183149381414494328142010001543212729136561000300010002868628725285532883628721
640042880622202000000040000476128323000165295006100030001000100030001000500050013573100022884284932880731050001000300020003000285902864911610011000100001000010000910000202013390937270783154053198153186381615454628161010001536312572137701000300010002867028675287502864628728

Test 2: throughput

Count: 8

Code:

  ld3r { v0.4h, v1.4h, v2.4h }, [x6], x8
  ld3r { v0.4h, v1.4h, v2.4h }, [x6], x8
  ld3r { v0.4h, v1.4h, v2.4h }, [x6], x8
  ld3r { v0.4h, v1.4h, v2.4h }, [x6], x8
  ld3r { v0.4h, v1.4h, v2.4h }, [x6], x8
  ld3r { v0.4h, v1.4h, v2.4h }, [x6], x8
  ld3r { v0.4h, v1.4h, v2.4h }, [x6], x8
  ld3r { v0.4h, v1.4h, v2.4h }, [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)03mmu table walk data (08)09l2 tlb miss data (0b)0e0f18191e1f22243a3f4346494e4f51schedule 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)696d6emap 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 load (98)inst ldst (9b)9d9fl1d tlb access (a0)l1d tlb miss (a1)l1d cache miss ld (a3)ld unit uop (a6)l1d cache writeback (a8)a9acafb5b6bbl1d cache miss ld nonspec (bf)c2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0e7? int output thing (e9)eaeb? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
3202058006964300000002200008002716600254001488010024003880000801002400008000048049948000531208578002380042800420324400100200800002400002001600002400008004280042118020110099100100800008000001008000001380010260555800146010170000510911721800390800009680000240000801008004380043800438004380043
32020480042642000001134000080027166002540013880100240000800008010024000080000480499479999312093280023800428004203244001002008000024000020016000024000080042800422180201100991001008000080000110080000013800101501180010509170000510911721800391800009680000240000801008004380043800438004380043
32020480042643000010022000080027166002540013880140240162800408014024012080040480975481634313124480023800428004203244001002008000024000020016000024000080042800421180201100991001008000080000010080000013800095301980010010170000510911712800391800000680000240000801008004380043800438004380043
320204800426420001000210000800270660025400148801002400428000080100240000800004804994800063120865800238004280042032440010020080000240000200160000240000800428004211802011009910010080000800000100800000188000952013800006110170000510921712800391800009980000240000801008004380043800438004380043
3202048004264300000003600008002716600254001008010024003880000801002400008000048049948002031209638002380042800420324400100200800002400002001600002400008004280042118020110099100100800008000001008000001380010401280013519180000510911711800390800009980000240000801008004380043800438004380043
3202048004264310010002514202400080404166451293400876802622406188020080260240600801604814514881153172138803338027280419282613340110020080160240600200160400240600804218034541802011009910010080000800000100801570138015847022428018551101700005171243238029108020012780000240000801008042180347802708027080346
32020480343645010010024000080027106002540014880100240048800008010024000080000480499480020312092380023800428004203244001002008000024000020016000024000080042800421180201100991001008000080000010080000017800095010800135011180000510921711800390800009680000240000801008004380043800438004380344
3202048004264400000003400108002716600254001388010024004880040801002400008000048049948001631208618002380042800420324400100200800002400002001600002401208004280042118020110099100100800008000001008000021380009302138001061900000510921722801021800006680000240000801008004380043801198004380119
3202048004264300011003100008002716000254001488010024003880000801002400008004048049948000031208728002380042800427324400300200800002400002001600802400008004280042118020110099100100800008000001008000021780010340138000061101700005122117218003918000091080000240000801008004380043800438004380043
320204800426430000000300010800271060025400148801002400488000080100240000800004804994800143128825800238004280042032440010020080040240000200160000240000800428004211802011009910010080000800000100800000138005061010800006013170000512111722800391800009780000240000801008004380043800438004380043

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 data (08)09l2 tlb miss data (0b)0e0f18191e1f2223243a3f4346494e4f51schedule 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)6061696d6emap 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 load (98)inst ldst (9b)9d9fl1d tlb access (a0)l1d tlb miss (a1)l1d cache miss ld (a3)ld unit uop (a6)l1d cache writeback (a8)a9acafb5b6bbl1d cache miss ld nonspec (bf)l1d tlb miss nonspec (c1)c2branch cond mispred nonspec (c5)cdcfd0d2d5map dispatch bubble (d6)ddfetch restart (de)e0e7? int output thing (e9)eaeb? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
3200258005562000000000290000080027106002540007480010240063800008005024000080000480049480022312253610800238004280117032440001020800002400002016000024000080042800421180021109101080000800000108000652380024002480018612523500050190031766800391800009980000240000800108004380043800438004380043
320024800426201000000030000008002716600254000858001024006480000800102400008000048004948002331225360080023800428004208244000102080000240000201600002400008004280042118002110910108000080000010800076228006200580018612322610050190061736800391800006680000240000800108004380043800438004380043
3200248004262011110000174000008002716600254000588001024006380000800102400008000048004948001431199941080023800428004203244000102080000240000201600002400008004280042118002110910108000080000110800000178002500168001061623500050190051744800391800009980000240000800108004380043800438004380043
320024800426201011000031000008002716600254000588001024003880000800102400008000048004948002231225361080085800428004203244000102080000240000201600802400008004280042118002110910108000080000010800006178001310138001261240000050190061755800391800006080000240000800108004380043800438004380043
320024800426200000000031000108002710600254000108001024001580000800102400008000048004947999831199941080023800428004203244000102080000240000201600002400008004280042118002110910108000080000010800000178002410080012511013000050190061753800390800009680000240000800108004380043800438004380043
320024800426210010000016000008002706600254000738001024007580000800102400008000048004948003431225990080023800428004203244000102080000240000201600002400008004280042118002110910108000080000010800066080024002480018612423000050190031766800391800006680000240000800108004380043800438004380043
3200248004262000001100190001080027166002540004880010240038800008001024000080000480049479998312085200800238004280042032440001020800002400002016000024000080042800421180021109101080000800000108000001780000001380000601013000050190061775800390800006680000240000800108004380043800438004380043
3200248004262000000000190000080027166002540001080010240042800008001024000080000480049480005312085200800238004280042032440001020800002400002016000024000080042800421180021109101080000800000108000000800000013800135000000050190041746800390800000080000240000800108004380043800438004380043
3200248004262000000000180000080027166002540001080010240048800008001024000080000480049480006312085200800238004280042032440001020800002400002016000024000080042800421180021109101080000800000108000000800000008001300130000050190091744800391800009680000240000800108004380043800438004380043
320024800426200000001028388001080027066113464002528009024011480080800502402408004048028748325331302430080085801198011871051400210208000024000020160080240120800428011821800211091010800008000011080000013800130211208001301100000050440092557801021800009680000240000800108004380120800438011980118