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

Test 1: uops

Code:

  ld3r { 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, 1
  mov x1, 2
  mov x8, 0

(no loop instructions)

1000 unrolls and 1 iteration

Retires (minus 60 nops): 4.000

Issues: 5.012

Integer unit issues: 1.000

Load/store unit issues: 1.000

SIMD/FP unit issues: 3.012

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)0e0f18191e1f23243a3f43464951schedule 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 tlb miss (a1)l1d cache miss ld (a3)ld unit uop (a6)l1d cache writeback (a8)a9acafb5bbl1d 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
640052902323210300300000300046682843910016817500610003006100010003000100050005000357175002282628622287453105000100030002000300028720286951161001100010000100003100000110012130001320194757019315104219724322538031138472824910001525312847136621000300010002867428759287812861828624
640042881723100300200000400047362833301016800500910003006100010003000100050005000357439002285728705288633105000100030002000300028730286861161001100010000100003100100110012130001304694976900306305119745327438081744392813110001549012639137101000300010002889829056289012896528990
6400428804231001001000004000473328523011166185009100030091000100030001000500050003568116072278328656287293105000100030002000300028685286231161001100010000100002100000010012130001312592056954316604619735317838051343512812510001580112716137491000300010002865428740286822886628634
640042862323020300300010136000476928552000168785009100030091000100030001000500050003573115002281228736291113105000100030002000300029012288881161001100010000100003100100110022120001313192936890309324520054333238101843472840410011557712937137371000300010002902629107290622907129010
640042911223300200100000400046572865011016848500910003006100010003000100050005042356851500228402886529211310500010003000200030002881828963116100110001000010040310010211001202009061318996256902316724419844317438071245392825810001592412969137881000300010002878228837288712880728809
6400428890231003003000003000473128552101165805006100030031001100030001000500050063574012002276928864289483105000100030002000300028755288481161001100010000100003100000310002230001303291546862312914419760324238051444452837810011560212719138511000300010002877728806288652880328897
640042892723200300300001400046512852601116675500610003009100010003000100050005000356661308227922869928882310500010003000200030002878628825116100110001000010000210010045510012130001304194266922324914219778321438001448472821710001560412732139091000300010002884928777288882887528797
6400428850232002012000003000480828448011166635009100130091000100030001000500050013569316002280828806288453275005100030032000300028706287492161001100010000100003100100110002130001315492506800314014220300330138011947452873510001610613088145651000300010002884728813288662884328873
64004289002340020120000040004633283991011656950061000300910001001300010005000500035674600227932876628794310500010003000200030002913128857116100110001000010000210010038610012320001300692296970312315019801316138071446432816910001538012664137701000300010002878728851287612887428684
6400428702231004003000006000463628450110164905009100030061001100030001000500050003567515102281928619288473105000100030002000300028636288602161001100010000100203100000110012330001322796516941308105019831329938012043432821910001560612543138131000300010002870728912287102881828713

Test 2: throughput

Count: 8

Code:

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

retire uop (01)cycle (02)03mmu table walk data (08)l2 tlb miss data (0b)0e0f18191e1f22233a3f4346494e4f51schedule 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)60696d6emap stall dispatch (70)simd prf full (72)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)st unit uop (a7)l1d cache writeback (a8)a9acafb5b6bbl1d cache miss ld nonspec (bf)c2cfd5map dispatch bubble (d6)ddfetch restart (de)e0e7? int output thing (e9)eaeb? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
32020580068621001100280000800271060025400159801002400598000080100240000800004804994800233121555180023800428004200324400100200800002400002001600002400008004280042118020110099100100800008000011008000001880013000178001361140051091171180039180000141080000240000801008004380043800438004380043
32020480042620001000210000800271660025400159801002400598000080100240000800004804994799983121493080023800428004200324400100200800002400002001600002400008004280042118020110099100100800008000001008000000800140001780000611518051091171280039080000131280000240000801008004380043800438004380043
320204800426200000003200008002716600254001518010024005180000801002400008000048049948002131199940800238004280042003244001002008000024000020016000024000080042800421180201100991001008000080000010080000018800140001480014611418051091171180039080000101080000240000801008004380043800438004380043
320204800426210000002100008002710600254001598010024005980000801002400008000048049948163631200390800238004280042703244003002008000024000020016000024000080042800421180201100991001008000080000110080000018800150041480014611420051091171180039180000131380000240000801008004380043800438004380043
320204800426210000002200008002716603254001008010024005980000801002400008000048049948001431214930800238004280042003244001002008000024000020016000024012080042800421180201100991001008000080000010080000018800140101980016611420051091171180039180000131080000240000801008004380043800438004380118
3202048004262000000000000800270660025400151801002400598000080100240000800004804994800153121493080023800428004200324400100200800002400002001600002400008004280042118020110099100100800008000001008000001880014000148001461140051091171180039080000131080000240000801008004380043800438004380043
320204800426200000004500008002716600254001598010024005980000801002400008000048049948001131216950800238004280042003244001002008000024000020016000024000080042800421180201100991001008000080000010080000018800160101880015611420051091171180039180000101080000240000801008004380043800438004380043
3202048004262100000000000800271600025400151801002400598000080100240000800004804994800163121493080023800428004200324400100200800002400002001600002400008004280042118020110099100100800008000011008000001880016000148001461130051091171180039080000131380000240000801008004380043800438004380043
32020480042620000000230000800271660025400159801002400518000080100240000800004804994800153121550080023800428004200324400100200800002400002001600002400008004280042118020110099100100800008000011008000001880014020138001461180051091171180039180000131380000240000801008004380043800438004380043
320204800426210010001900008002716600254001008010024000080000801002401418000048049948163131214930800238004280042003244001002008000024000020016000024000080042800421180201100991001008000080000010080000018800160001480016611518051091171180039080000101380000240000801008004380043800438004380043

1000 unrolls and 10 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)0e0f18191e1f233a3f4346494e4f51schedule 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)60696b6d6emap 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)c2cfd5map dispatch bubble (d6)ddfetch restart (de)e0e7? int output thing (e9)eaeb? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
320025800566210001000310008002716000254000588001024004880000800102400008000048004948002531208520800230800428004203244000102080000240000201600002400008004280042118002110910108000080000010800000080000005180000601000501931722800390800009680000240000800108004380043800438004380043
3200248004262000000001900080027100002540001080010240048800008001024000080000480049480011312091708002308004280042032440001020800002400002016000024000080042800421180021109101080000800000108000000800121015480010610170501931722800391800009080000240000800108004380043800438004380043
3200248004262100001001800080027166002540001080010240048800008001024000080000480049480007311999408002308004280042032440001020800002400002016000024000080042800421180021109101080000800000108000000800100018800106112170501921722800391800000680000240000800108004380043800438004380043
3200248004262000000001800080027166002540005780010240048800008001024000080000480049480273312538208002308004280042032440001020800002400002016000024000080042800421180021109101080000800000108000001380009102180010010180501921722800390800009980000240000800108004380043800438004380043
3200248004262100001000000800271660025400058800102400488000080010240000800004800494800223120054080023080042800420324400010208000024000020160000240000800428004211800211091010800008000001080000013800101015180009509170501921723800390800009680000240000800108004380043800438004380043
3200248034462000000001900080027166002540004880010240048800008001024000080000480049480007312085208002308004280042032440001020800002400002016000024000080042800421180021109101080000800000108000001380012101880010600170501921722800391800009980000240000800108004380043800438004380043
320024800426210000000180008002706600254000588001024004880000800102400008000048004948000731199940800230800428004203244000102080000240000201600002400008004280042118002110910108000080000010800000138001310133800096110170501921722800391800009980000240000800108004380043800438004380043
320024800426200000000190008002716600254000588001024005780000800102400008000048004948000731208520800230800428004203244000102080000240000201600002400008004280042118002110910108000080000110800000138001300184800106013130501921722800391800009680000240000800108004380043800438004380043
32002480042620000000030000800271660025400058800102400388000080010240000800004800494800153120851080023080042800420324400010208000024000020160000240000800428004211800211091010800008000001080000017800130019380010619170501921722800390800008680000240000800108004380043800438004380114
3200248004262000000001900080027166002540005880010240048800008001024000080000480049479998312085208002308019280118141477400010208008024012020160080240000800428019331800211091010800008000001080074008008912699800840191725032417042809850806009980000240000800108012080194801958011980194