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

LD4R (post-index, 8H)

Test 1: uops

Code:

  ld4r { 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): 5.000

Issues: 6.012

Integer unit issues: 1.000

Load/store unit issues: 1.000

SIMD/FP unit issues: 4.008

retire uop (01)cycle (02)03mmu table walk instruction (07)mmu table walk data (08)09l2 tlb miss instruction (0a)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 tlb miss (a1)l1d cache miss ld (a3)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acafb5bbl1d cache miss ld nonspec (bf)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
6500529395236220012000015000047092877800016847601210004012100010004000100050005000475871600229742922029320310600010004000200040002923729263116100110001000010000210010000100021300131759322694531207372029533393810536362859210001591313024144041000400010002943929357293122943029311
650042935823514001200002000046642888200017116600810004008100010004000100050005000475303002296629108292763106000100040002000400029201292921161001100010000100002100000001000202001333294776978310314412038032883811747372856210001606013220140891000400010002938129329293502926529343
650042931623617001700002010046992897700017124600810004008100010004000100050005000475481100229262918829281310600010004000200040002926129071116100110001000010000210000103100020200133449529692731028342019932573815537352865410001627312908142461000400010002945329335293172943129250
65004293512351300170000200004685290270001712160081000400810001000400010005000500047536300230142922229359310600010004000200040002935029100116100110001000010000310010000100020300131259330688030925362022832713804442342857310001628713330142111000400010002938529444294582927329457
65004293872361300150000201004676289150011707360121000400810001000400010005000500047520300229812929129386310600010004000200040042930029217216100110001000010000210000000100120300131239471701632009342045132103808639342864810001610613365142761000400010002932629263293702936029306
6500429441236900120000200004727288530011713660081000401210001000400010005000500047573900229222914429356310600010004000200040002922629193116100110001000110000210000000100120300133159358690631548382031932783811841442850110001633113129143051000400010002942029352293452959029401
65004292902371500150000300004735288410001705860081000400810001000400010005000500047520810229192925529343310600010004000200040002923329185116100110001000010000210000001100121200132629420694131685332033832973807736372859210001617413334142601000400010002927229269294542935429250
650042940123616001600002000046562881300117078601210004008100010004000100050005000475321200229542918129335310601810004000200040002935529283116100110001000010000310000003100020200132419337693031475342025532323810635412863510001628913201142371000400010002936229384292642932629328
6500429237235110015000029010046822888901016987601210004012100110004000100050005000475028002294329106293903106000100040002000400029204292311161001100010000100003100001011000202001308094506960315923720278333838071341412864010001593313018143871000400010002938329354294352941329362
65004292692351200160000300004654289050001694860081000400810001000400010005000500047583200229432927029398310600010004000200040002929629217116100110001000010000210000100100020200131559385697731558292023633473816529332857810001644212930143321000400010002948029424293902937729396

Test 2: throughput

Count: 8

Code:

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

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)0e0f18191e1f23243a3f4346494e51schedule 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)l1d tlb miss nonspec (c1)c2cfd5map dispatch bubble (d6)ddfetch restart (de)e0e7? int output thing (e9)eaeb? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
4002058006962110000010003500008005116632548016080100320072800008010032000080000480499480048864002008004180048800660034848010020080000320000200160000320000800608005711802011009910010080000800000100800000188000600017800236102700510931733800571800000080000320000801008006780067800488006180067
40020480060621001000000050000800451660254801728010032007280000801003200008000048049948004186400201800418006080060003424801002008000032000020016000032000080060800571180201100991001008000080000010080000018800160100800006113270051093173380054180000131080000320000801008005880067800678006180043
40020480060620001000000034000080051160025480172801003200728000080100320000800004804994800188640020080028800428006000343480100200800003200002001600003200008006080060118020110099100100800008000001008000660800150011980023611527005109317328006318000013080000320000801008004380061800678007080061
4002048006062100000011003300008004516602548017280100320072800008010032000080000480499480509864002008002680060800600032448010020080000320000200160000320000800428004211802011009910010080000800000100800000188000000019800150016200051094175480060080000131080000320000801008006180061800618006180043
4002048005762100000000002200008003206002548017280100320072800008010032000080000480499480033864002008003880042800600032548010020080000320000200160000320000800428004511802011009910010080000800000100800000188000000038001360142000510931733800571800000080000320000801008006180058800618006180058
4002048006062000000000002200008002716602548017280100320000800008010032000080000480499480090864002008002680060800480032448010020080000320000200160000320000800668006611802011009910010080000800000100800000278001400032800006129200151093173380057180000131380000320000801008006180061800618004380061
400204800426200000000000460100800451060254801728010032004880000801003200008000048049948004710880304180041800608006000342480100200800003200002001600003200008004280066118020110099100100800008000001008000000800160003280014011400051092173280057080000131080000320000801008006180043800618004380061
4002048004562210000001003500008002700602548017280100320048800008010032000080000480499480733864002008002380060800570034248010020080000320000200160000320000800608005711802011009910010080000800000100800000080016000080015611500051093173280054080000131180000320000801008006180061800618005880061
40020480060621000000000021000080027160025480172801003200728000080100320000800004804994806038640024080041800458006000342480100200800003200002001600003200008006080060118020110099100100800008000001008000001880016000168001461020005109317438005718000001380000320000801008006180061800618006180061
40020480060620000000010040000080027066025480172801003200008000080100320000800004804994807618640020080041800608004200342480100200800003200002001600003200008006280057118020110099100100800008000001008000001880000000080016601406151093174280063180000131580000320000801008006180048801968035280198

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03l1d tlb fill (05)mmu table walk data (08)l2 tlb miss data (0b)0e0f18191e1f233a3f4346494e51schedule 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)9fl1d 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)c2cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0e7? int output thing (e9)eaeb? ldst retires (ed)? simd retires (ee)? int retires (ef)f5f6f7f8fd
4000258005862100001003000080033166025480058800103200568000080010320000800004800494800201056001608004380062800620036848001020800003200002016000032000080064800511180021109101080000800001080005608008800024800180124236005019101733800591800009980000320000800108006380063800638006380063
400024800626201000000410008004706602548046680010320056800008001032000080000480049480023544002408004380062800620034448001020800003200002016000032000080062838932818002110910108000080000108000001780000000138000061017000501991733800540800009680000320000800108005880058800588005880058
4000248005762000000000000800421660254800668001032005680000800103200008000048004948000541599920800388005780057003394800102080000320000201600003200008005780660118002110910108000080000108000001380012010188001361130000501981733800541800009680000320000800108005880058800588005880058
40002480057620000000019000800421660254800668001032006080000800103200008000048049748001176800200800388005780042003244804902080000320000201600003200008005780057118002110910108000080000108000001380013010895800006010170005019121733800391800009980000320000800108005880058800558005880043
4000248005762000000000000800391060254800668001032005680000800103200008000048004948000541599920800388005780057003364800102080000320000201600003200008005780057118002110910108000080000108000001380013000138001261917000501971733800541800009680000320000800108005880058800588005880058
40002480057620000000028000800271660254800668001032006880000800103200008000048004948001347988640800358005780057003394800102080000320000201600003200008005780054118002110910108000080000108000001380013000380073011317000501951733800541800009980000320000800108004380058800588005880061
400024801956240000000310008004206602548006680010320000800008001032000080000480049480014768002008003880057800570033948001020800003200002016000032000080057800571180021109101080000800001080000013800130001580013619170005019131733800541800009680000320000800108005880058800588005880055
400024800426200100000190008004206602548006680010320056800008001032000080000480049480007864002008003880057800570033948001020800003200002016000032000080504800571180021109101080000800001080000013800910001680013611017000501981733800511800009980000320000800108005880058801598005880058
4000248005762000000001900080180166025480066800103200568000080091320000800004800494800138639992080038801928005700343948001020800003200002016000032000080054800571180021109101080000800001080000008001200008001261917000501981733800540800009680000320000800108005880058800588005880058
40002480057621000000018000800421660254800668001032005680000800103200008000048004948001142019320800388005780045003364800102080000320000201600003200008005780057118002110910108000080000108000001880013010198001261917000501981733800540800009680000320000800108005880058800558005580058