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

SMULL

Test 1: uops

Code:

  smull 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)03l2 tlb miss data (0b)1e3f4d51schedule 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
100430332300307280925100010001000161686140303330332676328911000100020003033296111001100000732162228631000100030343034303430343034
10043033230061280925100010001000161686040303330332676328911000100020003033296111001100000732162228631000100030343034303430343034
100430332400612809251000100010001616860403033303326761628911000100020003033296111001100010732162228631000100030343034303430343034
10043033240061280925100010001000161686140303330332676328911000100020003033296111001100000732162228631000100030343034303430343034
10043033230061280925100010001000161686040303330332676328911000100020003033296111001100000732162228631000100030343034303430343034
100430332200912280925100010001000161686140303330332676328911061100020003033296111001100003732161228631000100030343034303430343034
10043033220061280925100010001000161686140303330332676328911000100020003033296111001100000732162228631000100030343034303430343034
10043033230061280925100010001000161686140303330332676328911000100020003033296111001100000732162228631000100030343034303430343034
10043033230061280925100010001000161686140303330332676328911000100020003033296111001100003732162228631000100030343034303430343034
10043033220061280925100010001000161686040303330332676328911000100020003033296111001100000732162228631000100030343034303430343034

Test 2: Latency 1->2

Code:

  smull 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)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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1020430033225246129809251010010100101001665186149269533003330033285263287411010010200202003007029011102011009910010100100000710116112986310000101003003430034300343003430034
10204300332252556129809251010010100101001665186049269533003330033285263287411010010200202003003329021102011009910010100100000710116112986310000101003003430034300343003430034
1020430033225516129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
1020430033225456129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
1020430033225366129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
1020430033224966129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
1020430033225126129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
102043003322436129809251010010100101001665186049269533003330033285613287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
102043003322506129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
102043003322406129809251010010100101001665186049269533003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034

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)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 tlb access (a0)l1d cache writeback (a8)acbranch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)eb? int retires (ef)f5f6f7f8fd
100243003322506129809251001010010100101664736492695330033300332854832876310010100202002030033296111002110910100101000006402162229864100000100103003430034300343003430034
100243003322506129809251001010010100101664736492695330033300332854832876310010100202002030033296111002110910100101000306402162229864100000100103003430034300343003430034
1002430033225014529809251001010010100101664736492695330033300332854832876310010100202002030033296111002110910100101000006402162229864100000100103003430034300343003430034
100243003322506129809251001010010100101664736492695330033300332854832876310010100202002030033296111002110910100101004006402162229864100000100103003430034300343003430034
100243003322506129809251001010010100101664736492695330033300332854832876310010100202002030033296111002110910100101000006402162229864100002100103003430034300343003430034
100243003322506129809251001010010100101664736492695330033300332854832876310010100202002030033296111002110910100101000006402162229864100000100103003430034300343003430034
1002430033224061298092510010100101001016647364926953300333003328548328763100101002020020300332961110021109101001010025906402162229864100000100103003430034300343003430034
100243003322506129809251001010010100101664736492695330033300332854832876310010100202002030033296111002110910100101000006402162229864100000100103003430034300343003430034
100243003322506129809251001010010100101664736492695330033300332854832876310010100202002030033296111002110910100101000006402162229864100000100103003430034300343003430034
100243003322506129809251001010010100101664736492695330033300332854832876310010100202002030033296111002110910100101000006402162229864100000100103003430034300343003430034

Test 3: Latency 1->3

Code:

  smull 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)03181e3f4d51schedule 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 tlb miss (a1)l1d cache writeback (a8)c2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
102043003322509361298092510100101001010016651861492695330033300332852632874110100102002020030033290111020110099100101001000000710216222986310000101003003430034300343003430034
102043003322501561298092510100101001010016651861492695330033300332852632874110100102002020030033290111020110099100101001000000710216222986310000101003003430034300343003430034
10204300332250061298092510100101001010016651861492695330033300332852632874110100102002020030033290111020110099100101001000000710216222986310000101003003430034300343003430034
102043003322501561298092510100101001010016651861492695330033300332852632874110100102002020030033290111020110099100101001000000710316222986310000101003003430034300343003430034
102043003322503361298092510100101001010016651861492695330033300332852632874110100102002020030033290111020110099100101001000000710216222986310000101003003430034300343003430034
10204300332250061298092510100101001010016651860492695330033300332852632874110100102002020030033290111020110099100101001000000710216222986310000101003003430034300343003430034
1020430033225021361298092510100101001010016651860492695330033300332852632874110100102002020030033290111020110099100101001000000710216222986310000101003003430034300343003430034
10204300332250061298092510100101001010016651860492695330033300332852632874110100102002020030033290111020110099100101001000000710216222986310000101003003430034300343003430034
102043003322506661298092510100101001010016651861492695330033300332852632874110100102002020030033290111020110099100101001000000710216222986310000101003003430034300343003430034
10204300332240061298092510100101001010016651860492695330033300332852632874110100102002020030033290111020110099100101001000000710216222986310000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)033f4d51schedule 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 tlb miss (a1)l1d cache writeback (a8)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100243003322561298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
100243003322561298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
100243003322561298092510010100101001016647360492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
100243003322561298092510010100101001016647360492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
100243003322561298092510010100101001016647360492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
1002430033225612980925100101001010010166473619826953300333003328548328763100101002020020300332961110021109101001010001100640216222986410000100103003430034300343003430034
100243003322561298092510010100101001016647360492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
100243003322561298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000100640216222986410000100103003430034300343003430034
100243003322561298092510010100101001016647361492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
100243003322561298092510010100101001016647360492695330033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034

Test 4: throughput

Count: 8

Code:

  smull x0, w8, w9
  smull x1, w8, w9
  smull x2, w8, w9
  smull x3, w8, w9
  smull x4, w8, w9
  smull x5, w8, w9
  smull x6, w8, w9
  smull 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)l2 tlb miss data (0b)18191e1f3a3f51schedule 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 tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80204400523130000000402580100801008010040050049369554003540035299703299938010080200160200400359011802011009910080100100000005110216114003280000801004003640036400364003640036
80204400353000000000402580100801008010040050049369554003540035299703299938010080200160200400359011802011009910080100100000005110116114003280000801004003640036400364012640082
802044003530000000002082580100801008010040050049369554003540035299703299938010080200160200400359011802011009910080100100000005110116114003280000801004003640036400364003640036
80204400353000000000402580100801008010040050049369554003540035299703299938010080200160200400359011802011009910080100100000005110116114003280000801004003640036400364003640036
80204400353000000000402580100801008010040050049369554003540035299703299938010080200160200400359011802011009910080100100000005110116114003280000801004003640036400364003640036
80204400353000000000402580100801008010040050049369554003540035299703299938010080200160200400359011802011009910080100100000005110116114003280000801004003640036400364003640036
80204400353000000000402580100801008010040050049369554003540035299703299938010080200160200400359011802011009910080100100000035110116114003280000801004003640036400364021840036
80204400353000000000402580100801008010040050049369554003540035299703299938010080200160200400359011802011009910080100100000005110116114003280000801004003640036400364003640036
80204400353000000000402580100801008010040050049369554003540035299703299938010080200160200400359011802011009910080100100000005110116114003280000801004003640036400364003640036
80204400353000000000402580100801008010040050049369554003540035299703299938010080200160200400359011802011009910080100100000005110116114003280000801004003640036400364003640036

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk instruction (07)l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f3f51schedule 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)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acc2cfl1i cache miss demand (d3)d5map dispatch bubble (d6)d9ddfetch restart (de)e0? int output thing (e9)ea? int retires (ef)f5f6f7f8fd
8002440049300000000061258001080010800104000501493695540035400352999233001580010800201600204003590118002110910800101000000005020081608640032800004800104003640036400364003640036
8002440035299000000040258001080010800104000501493695540035400352999233001580010800201600204003590118002110910800101000000005020081608840032800000800104003640036400364003640036
80024400353000000000402580010800108001040005014936955400354003529992330015800108002016002040035901180021109108001010000000050200816071340032800000800104003640036400364003640036
80024400353000000000402580010800108001040005014936955400354003529992330015800108002016002040035901180021109108001010000000050200716061140032800000800104003640036400364003640036
8002440035300000000040258001080010800104002301493695540035400352999233001580052800201600204003590118002110910800101000000005020071609640032800000800104003640036400364003640036
80024400353000000000402580010800108001040005004936955400354003529992330015800108002016002040035901180021109108001010000000050200101605740032800000800104003640036400364003640036
800244003529900000004025800108001080010400050149369554003540035299923300158001080020160020400359011800211091080010100000000502001016010940032800000800104003640036400364003640036
80024400352990000000402580010800108005240005014936955400354003529992330015800108002016002040035901180021109108001010000000050200101609640032800000800104003640036400364003640036
8002440035300000000040258001080010800104000501493695540035400352999233001580010800201600204003590118002110910800101000000005020061608740032800000800104003640036400364003640036
8002440035299000000040258001080010800104000501493695540035400352999233001580010800201600204003590118002110910800101000000005020051609840032800000800104003640036400364003640036