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

UMULL

Test 1: uops

Code:

  umull 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)031e1f3f4d51schedule 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 tlb miss (a1)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100430332300612809251000100010001616860403033303326763289110001000200030332961110011000000731161128631000100030343034303430343034
100430332300612809251000100010001616860403033303326763289110001000200030332961110011000000731161128631000100030343034303430343034
100430332200612809251000100010001616860403033303326763289110001000200030332961110011000010731161128631000100030343034303430343034
100430332300612809251000100010001616860403033303326763289110001000200030332961110011000000731161128631000100030343034303430343034
100430332300612809251000100010001616860403033303326763289110001000200030332961110011000000731161128631000100030343034303430343034
100430332300612809251000100010001616860403033303326763289110001000200030332961110011000000731161128631000100030343034303430343034
100430332300822809251000100010001616860403033303326763289110001000200030332961110011000000731161128631000100030343034303430343034
100430332200612809251000100010001616860403033303326763289110001000200030332961110011000000731161128631008100030343034303430343034
100430332300612809251000100010001616860403033303326763289110001000200030332961110011000000731161128631000100030343034303430343034
100430332300612809251000100010001616860403033303326763289110001000200030332961110011000000731161128631000100030343034303430343034

Test 2: Latency 1->2

Code:

  umull 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)03mmu table walk instruction (07)mmu table walk data (08)1e3a3f4d51schedule 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)l1d cache writeback (a8)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
102043003322400120612980925101001010010100166518604926953300333003328526328741101001020020200300332901110201100991001010010000000710116712986310000101003003430034300343003430034
102043003322500300612980925101001010710100166518604926953300333003328526328741101001020020374300332901110201100991001010010010000710116112986310025101003003430034300343003430034
10204300332251035401682980925101001010010100166518614926953300333003328526828741101001020020200300332901110201100991001010010000123710316112986310000101003003430034300343003430034
102043003322501210612980925101001010010100166518614926953300333003328526328740101251020020200300333111110201100991001010010020000710325212986310000101003003430034300343003430034
102043003322500303056392980925101001010010100166518614926953300333003328526328741101001020020200300332901110201100991001010010000000710016112986310000101003003430034300343003430034
10204300332250037201032980925101001010010100166518614926953300333003328526328741101001020020200300332901110201100991001010010000003710116312986310025101003003430034300343003430034
1020430033225012880612980925101001011010240166518604926953300333003328526328740101001020020200300332901110201100991001010010000000710716112986310025101003003430034300343003430034
10204300332250033901032980925101001012510100166518614926953300333003328526828741101001020020200300332901110201100991001010010000000710116112986310000101003003430034300343003430034
1020430033225003240822980925101001010010100166518604926953300333003328526328741101001020020200300332901110201100991001010010000000710116122995010000101003003430034300343003430034
10204300332250000612980925101001010010100166518614926953300333003328526328741101001020020200300332901110201100991001010010000000710116112986310000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)03mmu table walk data (08)1e3f4d51schedule 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 access (a0)l1d cache writeback (a8)acc2branch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100243003322500612980925100101001010010166473614926953030033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
100243003322500612980925100101001010010166473614926953030033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430209300343003430034
100243003322500842980925100101001010010166473614926953030033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
100243003322400612980925100101001010010166473614926953030033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
100243003322400612980925100101001010010166473614926953030033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
100243003322500612980925100101001010010166473614926953030033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
100243003322500612980925100101001010010166473604926953030033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
100243003322500612980925100101001010010166473604926953030033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034
100243003322500612980925100101001010010166473614926953030033300332854832876310010100202002030033296111002110910100101002000640216222986410000100103003430034300343003430034
1002430033225012612980925100101001010010166473614926953030033300332854832876310010100202002030033296111002110910100101000000640216222986410000100103003430034300343003430034

Test 3: Latency 1->3

Code:

  umull 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)0318191e3f4d51schedule 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 cache writeback (a8)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1020430033225003361298092510100101001010016651860492695303003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
102043003322500061298092510100101001010016651860492695303003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
102043003322500061298092510100101001010016651861492695303003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
102043003322500361298092510100101001010016651861492695303003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
102043003322500082298092510100101001010016651860492695303003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
102043003322500061298092510100101001010016651860492695333003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
1020430033225000726298092510100101001010016651860492695303003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
1020430033225000441298092510100101001010016651861492695303003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034
10204300332250333726298092510100101001010016651860492695303003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300693003430034
1020430033225001261298092510100101001010016651861492695303003330033285263287411010010200202003003329011102011009910010100100000710116112986310000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)03mmu table walk data (08)3f4d51schedule 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)accdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100243003322501032980925100101001010010166473604926953300333003328548328763100101002020020300332961110021109101001010230640216222986410000100103003430034300343003430034
100243003322501032980925100101001010010166473614926953300333003328548328763100101002020188300332961110021109101001010360640216222986410000100103003430034300343003430034
10024300332250612980925100101001010010166473604926953300333003328548328763100101002020020300332961110021109101001010000640216222986410000100103003430034300343003430034
10024300332240612980925100101001010010166473604926953300333003328548328763100101002020020300332961110021109101001010100640216222986410000100103003430034300343003430034
10024300332250612980925100101001010010166473604926953300333003328548328763100101002020020300332961110021109101001010000640216222986410000100103003430034300343003430034
10024300332240612980925100101001010010166473614926953300333003328548328763100101002020020300332961110021109101001010000640216222986410000100103003430034300343003430034
10024300332250612980925100101001010010166473604926953300333003328548328763100101002020020300332961110021109101001010000640216222986410000100103003430034300343003430034
10024300332240612980925100101001010010166473604926953300333003328548328763100101002020020300332961110021109101001010000640216222986410000100103003430034300343003430034
10024300332250612980925100101001010010166473604926953300333003328548328763100101002020020300332961110021109101001010000640216222986410000100103003430034300343003430034
10024300332250822980925100101001010010166473604926953300333003328548328763100101002020020300332961110021109101001010000640216222986410000100103003430034300343003430034

Test 4: throughput

Count: 8

Code:

  umull x0, w8, w9
  umull x1, w8, w9
  umull x2, w8, w9
  umull x3, w8, w9
  umull x4, w8, w9
  umull x5, w8, w9
  umull x6, w8, w9
  umull 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)0318191e1f3f51schedule 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)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
802044004929900690402580100801008010040050004936955400354003529970329993801008020016020040035901180201100991008010010000000005110216114003280000801004003640036400364003640036
80204400353000000402580100801008010040050014936955400354003529970329993801008020016020040035901180201100991008010010000000005110116114003280000801004003640036400364003640036
80204400352990000402580100801008010040050014936955400354003529970329993801008020016020040035901180201100991008010010000000005110116114003280000801004003640036400364003640036
802044003530000007052580100801008010040050004936955400354003529970329993801008020016020040035901180201100991008010010000000005110116114003280000801004003640036400364003640036
802044003530004810402580100801008010040050004936955400354003529970329993801008020016020040080901180201100991008010010000000005110116114003280000801004003640036400774003640036
80204400353000000402580100801008010040050014936955400354003529970329993801008020016020040035901180201100991008010010000000005110116114003280000801004003640036400364003640036
80204400353000000402580100801008010040050004936955400354003529970329993801008020016020040035901180201100991008010010000000005110116114003280000801004003640036400364003640036
80204400353000000402580100801008010040050004936955400354003529970329993801008020016020040035901180201100991008010010000000005110116114003280000801004003640036400364003640036
80204400353000000402580100801008010040050004936955400354003529970329993801008020016020040035901180201100991008010010000000005110116114003280000801004003640036400364003640036
8020440035299311207052580100801008010040050004936955400804003529970329993801008020016020040035901180201100991008010010000000005110116114003280000801004003640036400364003640036

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)5f60696a6b6d6emap 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)acc2branch cond mispred nonspec (c5)cfd0d2l1i cache miss demand (d3)d5map dispatch bubble (d6)d9dadbddfetch restart (de)e0? int output thing (e9)eaeb? int retires (ef)f5f6f7f8fd
800244004129915402580010800108001040005000493695504003540035299923300158001080020160020400359011800211091080010100000502000014160001311400328000000800104003640036400364003640036
80024400353000402580010800108001040005000493695504003540035299923300158001080020160020400359011800211091080010100000502000015160001313400328000000800104003640036400364003640036
80024400353000402580010800108001040005000493695504003540035299923300158001080020160020400359011800211091080010100000502000017160001315400328000000800104003640036400364003640036
80024400352990402580010800108001040005000493695504003540035299923300158001080020160020400359011800211091080010100000502000013160001114400328000000800104003640036400364003640036
80024400352990402580010800108001040005000493695504003540035299923300158001080020160020400359011800211091080010100000502000015160001613400328000000800104003640036400364003640036
80024400353000402580010800108001040005000493695504003540035299923300158001080020160020400359011800211091080010100000502000015160001014400328000000800104003640036400364003640036
80024400353000402580010800108001040005000493392604003540035299923300158001080020160020400359011800211091080010100000502000015160001012400328000000800104003640036400364003640036
8002440035300040258001080010800104000500049369550400354003529992330015800108002016002040035901180021109108001010000050200001416000914400328000000800104003640036400364003640036
80024400353000402580010800108001040005000493695504003540035299923300158001080020160020400359011800211091080010100000502000010160001116400328000000800104003640036400364003640036
80024400353000402580010800108001040005000493695504003540035299923300158001080020160020400359011800211091080010100000502000016160001110400328000000800104003640036400364003640036