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

SMNEGL

Test 1: uops

Code:

  smnegl x0, w0, w1
  mov x0, 1
  mov x1, 2

(no loop instructions)

1000 unrolls and 1 iteration

Retires: 1.000

Issues: 1.000

Integer unit issues: 1.000

Load/store unit issues: 0.000

SIMD/FP unit issues: 0.000

retire uop (01)cycle (02)03mmu table walk data (08)181e3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst int alu (97)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100430332200061280925100010001000161686140303330332676328911000100020003033296111001100000731161128631000100030343034303430343034
100430332300061280925100010001000161686140303330332676328911000100020003033296111001100003731162128631000100030343034303430343034
100430332300061280925100010001000161686140303330332676328911000100020003033296111001100010731161128631000100030343034303430343034
1004303323100156280925100010001000161686140303330332676328911000100020003033296111001100000731161128631000100030343034303430343034
100430332200061280925100010001000161686140303330332676328911000100020003033296111001100016731241128631000100030343034303430343034
100430332200061280925100010001000161686140303330332676328911000100020003033296111001100000731161128631000100030343034303430343034
100430332300061280925100010001000161686140303330332676328911000100020003033296111001100000731161128631000100030343034303430343034
100430332300061280925100010001000161686140303330332676328911000100020003033296111001100090731161128631000100030343034303430343034
100430332300061280925100010001000161686140303330332676328911000100020003033296111001100010731161128631000100030343034303430343034
100430332300061280925100010001000161686140303330332676328911000100020003033296111001100000731161128631000100030343034303430343034

Test 2: Latency 1->2

Code:

  smnegl x0, w0, w1
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)031e3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fl1d cache writeback (a8)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10204300332254146129809251010010100101001665186492695330033300332852632874110100102002020030033290111020110099100101001000710116112986310000101003003430034300343003430034
10204300332254176129809251010010100101001665186492695330033300332852632874110100102002020030033290111020110099100101001000710116112986310000101003003430034300343003430034
10204300332252826129809251010010100101001665186492695330033300332852632874110100102002020030033290111020110099100101001000710116112986310000101003003430034300343003430034
102043003322506129809251010010100101001665186492695330033300332852632874110100102002020030033290111020110099100101001004710116112986310000101003003430034300343003430034
10204300332253096129809251010010100101001665186492695330033300332852632874110100102002020030033290111020110099100101001000710116112986310000101003003430034300343003430034
10204300332253066129809251010010100101001665186492695330033300332852632874110100102002020030033290111020110099100101001000710116112986310000101003003430034300343003430034
10204300332243096129809251010010100101001665186492695330033300332852632874110100102002020030033290111020110099100101001000710116112986310000101003003430034300343003430034
10204300332253636129809251010010100101001665186492695330033300332852632874110100102002020030033290111020110099100101001000710116112986310000101003003430034300343003430034
10204300332253636129809251010010100101001665186492695330033300332852632874110100102002020030033290111020110099100101001000710116112986310000101003003430034300343003430034
10204300332253876129809251010010100101001665186492695330033300332852632874110100102002020030033290111020110099100101001000710116112986310000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)031e3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fl1d tlb access (a0)l1d cache writeback (a8)accdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1002430033225039529809251001010010100101664736149269533003330033285483287631001010020200203003329611100211091010010100000640216222986410000100103003430034300343003430034
1002430033224010729809251001010010100101664736149269533003330033285483287631001010020200203003359811100211091010010100000640216222986410000100103003430034300343003430034
1002430033225014529809251001010010100101664736149269533003330033285483287631001010020200203003329611100211091010010100000640216222986410000100103003430034300343003430034
1002430033225012629809251001010010100101664736149269533003330033285483287631001010020200203003329611100211091010010100000640216222986410000100103003430034300343003430034
100243003322408429809251001010010100101664736149269533003330033285483287631001010020200203003329611100211091010010100000640216222986410000100103003430034300343003430034
1002430033225017229809251001010010100101664736149269533003330033285483287631001010020200203003329611100211091010010100000640216222986410000100103003430034300343003430034
100243003322508429809251001010010100101664736149269533003330033285483287631001010020200203003329611100211091010010100000640216222986410000100103003430034300343003430034
10024300332240162529809251001010010100101664736149269533003330033285483287631001010020200203003329611100211091010010100200640216222986410000100103003430034300343003430034
100243003322508429809251001010010100101664736149269533003330033285483287631001010020200203003329611100211091010010100000640216222986410000100103003430034300343003430034
100243003322506129809251001010010100101664736149269533003330033285483287631001010020200203003329611100211091010010100000640216222986410000100103003430034300343003430034

Test 3: Latency 1->3

Code:

  smnegl x0, w1, w0
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)03191e1f3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fld unit uop (a6)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
102043003322507206129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
1020430033225035106129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
1020430033225038706129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
1020430033225031506129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
1020430033225035706129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100210710116112986310000101003003430034300343003430034
1020430033225033006129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
1020430033225032706129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
1020430033225036606129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
1020430033224036906129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
1020430033225037206129809251010010100101001665186049269533003330033285263287411010010200202003007729011102011009910010100100003710116112986310017101003003430077300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)03mmu table walk data (08)18191e1f3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fl1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ea? int retires (ef)f5f6f7f8fd
1002430033225000001242980925100101001010010166473614926953300333003328548328763100101002020020300332961110021109101001010006403163429864100000100103003430034300343003430034
100243003322500000842980925100101001010010166473614926953300333003328548328763100101002020020300332961110021109101001010006403164429864100000100103003430034300343003430034
100243003322400000612980925100101001010010166473614926953300333003328548328763100101002020020300332961110021109101001010006403163329864100000100103003430034300343003430034
100243003322500000822980925100101001010010166473614926953300333003328548328763100101002020020300332961110021109101001010016286403163329864100000100103003430034300343003430034
100243003322500000842980925100101001010010166473614926953300333003328548328763100101002020020300332961110021109101001010006403163329864100020100103003430034300343003430034
100243003322500000842980925100101001010010166473614926953300333003328548328763100101002020020300332961110021109101001010006403163329864100020100103003430034300343003430034
100243003322500000842980925100101001010010166473614926953300333003328548328763100101002020020300332961110021109101001010006403163329864100020100103003430034300343003430034
100243003322500000842980925100101001010010166473614926953300333003328548328763100101002020020300332961110021109101001010006403163329864100020100103003430034300343003430034
10024300332240000016452980925100101001010010166473614926953300333003328548328763100101002020020300332962110021109101001010006403163329864100020100103003430034300343003430034
10024300332250000021529809251001010010100101664736149269533003330033285483287631001010020200203003329611100211091010010104736403163329864100000100103003430034300343003430034

Test 4: throughput

Count: 8

Code:

  smnegl x0, w8, w9
  smnegl x1, w8, w9
  smnegl x2, w8, w9
  smnegl x3, w8, w9
  smnegl x4, w8, w9
  smnegl x5, w8, w9
  smnegl x6, w8, w9
  smnegl x7, w8, w9
  mov x8, 9
  mov x9, 10

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)1e3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6b6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fl1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)acbranch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80204400493000040258010080100801004005000493695504003540035299703299938010080200160200400359011802011009910080100100004005110216114003280000801004003640036400364003640036
80204400353000040258014580211801004005000493695504003540035299703299938010080200160302400359011802011009910080100100003005110116114003280000801004003640036400364003640036
80204400353000040258010080100801004005000493695504003540035299703299938010080200160200400359011802011009910080100100005005110116114003280000801004003640036400364003640036
80204400353000040258010080100801004005000493695504003540035299703299938010080200160200400359011802011009910080100100000605110116114003280000801004003640036400364003640036
80204400353000040258010080100801004005000493695504003540035299703299938010080200160200400359011802011009910080100100005005110116114003280000801004003640036400364003640036
80204400353000940258010080100801004005000493695504003540035299703299938010080200160200400359011802011009910080100100001005110116114003280000801004003640036400364003640036
80204400352990040258010080252801004005000493695504003540035299703299938010080200160200400359011802011009910080100100001005110116114003280000801004003640036400364003640036
80204400352990040258010080100801004005000493695504003540035299703299938010080200160200400359011802011009910080100100000005110116114003280000801004003640036400364003640036
80204400353000040258010080100801004005000493695504003540035299703299938010080200160200400359011802011009910080100100001005110116114003280000801004003640036400364003640036
80204400353000040258010080100801004005000493695504003540035299703299938010080200160200400359011802011009910080100100003005110116114003280000801004003640036400364003640036

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)031e3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)5f60696a6d6emap stall dispatch (70)map rewind (75)map stall (76)dispatch uop (78)map int uop (7c)map int uop inputs (7f)8283flush restart other nonspec (84)85inst all (8c)inst branch (8d)inst branch taken (90)inst branch cond (94)inst int alu (97)9fl1d cache writeback (a8)cfd0l1i cache miss demand (d3)d5map dispatch bubble (d6)dbddfetch restart (de)e0? int output thing (e9)eb? int retires (ef)f5f6f7f8fd
80024400833006484025800108001080010400050014933926400354003529992330015800108002016002040035901180021109108001010050200021601140032800000800104003640036400364003640036
8002440035300040258001080010800104000500049369554003540035299923300158001080020160020400359011800211091080010105550200011601140032800000800104003640036400364007840036
8002440035300904025800108001080010400050019836955400354003529992330015800108002016002040035901180021109108001010050200011601140032800000800104003640036400364003640036
8002440035300964025800108001080010400050004936955400354003529992330015800108002016002040035901180021109108001010050200011601140032800000800104003640036400364003640036
8002440035300964025800108001080010400050004936955400354003529992330015800108002016002040035901180021109108001010050200011601140032800000800104003640036400364003640036
800244003529949823225800108001080010400050004936955400354003529992330015800108002016002040035901180021109108001010050200011601140032800000800104003640036400364003640036
80024400353005434025800108001080010400050004936955400354003529992330015800108002016002040035901180021109108001010050200011601140032800000800104003640036400364003640036
80024400353003906325800108001080010400050004936955400354003529992330015800108002016002040035901180021109108001010050200011601140032800000800104003640036400364003640036
80024400353005254025800108001080010400050004936955400354003529992330015800108002016002040035901180021109108001010050200011601140032800000800104003640036400364003640036
80024400353006064025800108001080010400050004936955400354003529992330015800108002016002040035901180021109108001010050200011601140032800000800104003640036400364003640036