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, 2S)

Test 1: uops

Code:

  ld1 { v0.2s, v1.2s, v2.2s, v3.2s }, [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: 3.000

Integer unit issues: 1.000

Load/store unit issues: 2.000

SIMD/FP unit issues: 0.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)0f18191e1f233a3f43464951schedule 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 tlb miss (a1)l1d cache miss ld (a3)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acafb5b6bbl1d cache miss ld nonspec (bf)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
6400529771239122111800001700469729199000244203000100020001000200050001000001627728962296243103000400040002937329497116100110001000020044420060014200040242101329095406963315284320559331838211648432874910001629513689152972000200010002959029660296012966429708
6400429682238118102310002300463528807020237903000100120001000200250001000371631228632290591328300040044000290052896321610011000100012006242006000872200240282201319194226965314755119996322238161952442838310001607513058145222000200010002906729044290022903129049
6400429205233121221600121428804631287440022385430001001200210012002500010084716322284892923613723000400440042899428990416100110001000020050020020002200240402019981301092236837313645020225321838141446392891710001587513217147592000200010002894628845288382893428765
640042886123211811111010800472828509000235543000100020001000200050001000021627728268288033103000400040002866028698116100110001000020032620030205200060462001319793376850313384519914322338141346422826710001591012975145552000200010002898628968288132886628849
6400428943233015001900004004778285900202383330001000200010002000500010000416250282362865031030004000400028639287061161001100010000200004200220010200040000101347592056921317974319853334338211647432840710001553613275146312000200010002871728786287472880128833
640042892123211800191000368804627283340102361830001000200010002000500010000111624428393289923103000400040042867528701116100110001000020060020180007202202560260001313491406742296374620202313938144852532906210111590313225144762000200010002934529414294552970929629
640042941323701511220000800462028367000236013003100020001000200050001000041624728457287493103000400040002862428631116100110001000020023020030014200260442101313093276937319384819725317938111439422819910001543112601141592000200010002875828838287472872228802
6400428776223113011410002004626284500122371930001000200010002000500010000131624028308287643103000400040002862228588116100110001000020023620090018200260282101306893616930308764119781322138141640412824610001563312868142382000200010002876328717288352869428664
64004286292231200017100020047472844100023632300010002000100020005005100036162352828228766910300040004000287652872111610011000100012002202004002387200560462101321094676860320494119657318538021839492808410001555213051142982000200010002876428710287972873028759
6400428800223119021800001790045892839600223506300010002000100020005000100001316244283782883931030004000400028700286211161001100010000200434200201182000402820013325945268793086124119726316138091642472824110001561712915145092000200010002876328747287842882528814

Test 2: throughput

Count: 8

Code:

  ld1 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6], x8
  ld1 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6], x8
  ld1 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6], x8
  ld1 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6], x8
  ld1 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6], x8
  ld1 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6], x8
  ld1 { v0.2s, v1.2s, v2.2s, v3.2s }, [x6], x8
  ld1 { v0.2s, v1.2s, v2.2s, v3.2s }, [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 instruction (07)mmu table walk data (08)09l2 tlb miss instruction (0a)l2 tlb miss data (0b)0e0f18191e1f233a3f4346494f51schedule 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)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)st unit uop (a7)l1d cache writeback (a8)a9acafb5b6bbl1d cache miss ld nonspec (bf)l1d tlb miss nonspec (c1)c2branch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)eaeb? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
320205800696211100000000550048002626632524010080100160000801001600004804999613301080016800418004103232402172003200002003200008004180041118020110099100100800008000001001600111101600500142050160039614943110051092172280038800001313160000160000801008004280042800428004280042
320204800416211111010000680028002617732524010080100160000801001600004804999612791080093800428004103232401002003200002003200008013280042118020110099100100800008000001001600111143160051095150160039615043100051112171280038800001313160000160000801008004280042800428004280042
3202048004162010010100005600180026266625240100801001600008010016000048049996412210800798004180041032324010020032000020032000080041800411180201100991001008000080000010016008611431600510110051160039615043101051112171280038800391313160000160000801008004380042800428004280044
3202048004162011001000015500280026277325240100801001600008010016000048049996127310800168004180041032324021720032000020032000080041800411180201100991001008000080000010016001211431600491145049160039615043111051091172280038800001313160000160000801008004280042800428004280042
320204800416201100100000560028002626732524010080100160000801001600004804999612731080016800418004103232401002003200002003200008004180132118020110099100100800008000001001600121143160051081050160039615043100051112171280038800001313160000160000801008004280042800428004280090
3202048004162011001000005600280026266325240100801001600008010016000048049996131010800168004180041032324010020032000020032000080041800411180201100991001008000080000010016001111431600490128049160039615043110051091172280038800391313160000160000801008004480042800428004280042
320204800416211011010010680038002626632524010080100160000801001600004804999613151080016800418004103672401002003200002003200008004180041118020110099100100800008000001001600111143160123051052160039614943110051091172180038800001313160000160000801008004280042800428004280042
320204800416211100100000670038002627732524010080100160000801001600004804999613051080016800418004103232401002003200002003200008004180041118020110099100100800008000001001600121143160048085154160039615043100051092171280038800001313160000160000801008012680042800428004280042
3202048004162011100100006800380026266302524010080100160000801001600004804999612891080016800418004103232401002003200002003200008004180041118020110099100100800008000001001600121043160051084153160039615043100051112171280038800001313160000160000801008013380042800428004280042
32020480041621110111000055002800263773252401008010016000080100160092480499964112108001680132800412392324021720032015620032015680130800411180201100991001008000080000010016008414431601940820595160039615043110051342252280116800391313160000160000801008022580134801328022680131

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 instruction (07)mmu table walk data (08)l2 tlb miss instruction (0a)l2 tlb miss data (0b)0e0f18191e1f233a3f4346494f51schedule 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)91inst 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)st unit uop (a7)l1d cache writeback (a8)a9acafb5b6bbl1d cache miss ld nonspec (bf)l1d tlb miss nonspec (c1)c2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)eaeb? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
3200258005564210000010053002800263141402524001080010160000800101600004800499603640800160800418004103232400102032000020320000800418004111800211090101080000800000101600101140160123049148160036614740005019217338003880000109160000160000800108004280042800428004280042
320024800416421010000005200380026214120252400108001016000080010160000480049960874080016080041800410323240010203200002032000080041800411180021109010108000080000010160011114016004909014160037012143110501931722800388000008160000160000800108004280042800428004280042
32002480041643101000000530018002611414025240010800101600008001016000048004996004308001608004180041032324001020320156203200008004180041118002110901010800008000001016001111016004705210160037604840111501921722800388000000160000160000800108004280042800428004280043
3200248004164310000000056002800262151402524001080010160000800101600004800499608850800163800418004103232400102032000020320000800418004111800211090101080000800000101600131040160048086046160036612240111501931733800388000096160000160000800108004280042800428004280048
32002480041643100010000120038002601400252400108001016000080010160000480049960026080016080041800410323240010203200002032000080041800411180021109010108000080000010160011124016004603612516000061460101501921722800388000099160000160000800108004280042800428004280042
320024800416431000101009900080026301402524001080010160000800101600004800499609460800930801318004103232400102032000020320000801328004111800211090101080000800000101600121040160048079048160102014937110501922522801168000090160000160000800108004280042800428013380062
320024800416431000000105500180116014142748240010800491600008001016000048004996033108001608004180131036624001020320156203200008004180041118002110901010800008000001016008510401600480471596160036614843100501922622800388003900160000160000800108013280132800428013280046
3200248004164310000001010002801160131402524024480010160156800511600004800499628560801700802218004108232401272032000020320156800418004121800211090101080000800000101600111140160050056158616003661220100503121723801168000097160000160000800108004280042802228004280042
320024801356421000000017888028011620122747240244800101601568001016015648004996372508009308004180130072324001020320156203201568013180224218002110901010800008000001016008611401602620901090160108614840110503123433801948007899160000160000800108013180221802258013180132
32002480131645101000000550008002621414025240010800101600008001016000048004996033008001608004180041032324001020320000203200008004180041118002110901010800008000001016001012401600500270461600366149401115019317438003880000109160000160000800108004280042800428004280060