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

UMADDL

Test 1: uops

Code:

  umaddl x0, w0, w1, x2
  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)03191e3f4d51schedule 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
1004303322006119222510001000100081440040303330332760328911000100030003033380111001100000732161129391000100030343034303430343034
10043033230010519222510001000100081440140303330332760328911000100030003033380111001100000731161129391000100030343034303430343034
100430332300116419222510001000100081440040303330332760328911000100030003033380111001100000731161129391000100030343034303430343034
1004303322008419222510001000100081440140303330332760328911000100030003033380111001100000731161129391000100030343034303430343034
10043033230010319222510001000100081440140303330332760328911000100030003033380111001100000731161129391000100030343034303430343034
1004303322006119222510001000100081440140303330332760328911000100030003033380111001100000731161129391000100030343034303430343034
10043033230044119222510001000100081440040303330332760328911000100030003033380111001100000731161129391000100030343034303430343034
10043033230014719222510001000100081440140303330332760328911000100030003033380111001100000731161129391000100030343034303430343034
100430332301476119222510001000100081440140303330332760328911000100030003033380111001100000731161129391000100030343034303430343034
1004303323006119222510001000100081440040303330332760328911000100030003033380111001100000731161129391000100030343034303430343034

Test 2: Latency 1->2

Code:

  umaddl x0, w0, w1, x2
  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 data (08)0918191e3f4d51schedule 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)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
102043003322500000611992225101001010010100828940049269533003330033286103287411010010200302003003337411102011009910010100100000710116112993910000101003003430034300343003430034
102043003322400000611992225101001010010100828940049269533003330033286103287411010010200302003003337411102011009910010100100020710116112993910000101003003430034300343003430034
102043003322500000611990625101001010010100828940149269533003330033286103287411010010200302003003337411102011009910010100100000710116112993910000101003003430034300343003430034
102043003322500000611992225101001010010100828940149269533003330033286103287411010010200302003003337411102011009910010100100000710116112993910000101003003430034300343003430034
102043003322500000611992225101001010010100828940049269533003330033286103287411010010200302003003337411102011009910010100100000710116112993910000101003003430034300343003430034
102043003322400000611992225101001010010100828940149269533003330033286103287411010010200302003003337411102011009910010100100000710116112993910000101003003430034300343003430034
102043003322500000611992225101001010010100828940149269533003330033286103287411010010200302003003337411102011009910010100100000710116112993910000101003003430034300343003430034
102043003322500000611992225101001010010100828940049269533003330033286103287411010010200302003003337411102011009910010100100000710116112993910000101003003430034300343003430034
102043003322400000611992225101001010010100828940149269533003330033286103287411010010200302003003337411102011009910010100100000710116112993910000101003003430034300343003430034
102043003322500000611992225101001010010100828940049269533003330033286103287411010010200302003003337411102011009910010100100000710116112993910000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)03mmu table walk data (08)09l2 tlb miss data (0b)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 tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)st unit uop (a7)l1d cache writeback (a8)a9acc2branch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10024300332250000000611992225100101001010010828490149269533003330033286323287631001010020300203003338011100211091010010100000007800640216222993910000100103003430034300343003430034
10024300332250000000611992225100101001010010828490149269533003330033286323287631001010020300203003338011100211091010010100000008400640216232993910000100103003430034300343003430034
100243003322500000006119922251001010010100108284901492695330033300332863232876310012100203002030033401111002110910100101000000010200640216222993910000100103003430034300343003430034
10024300332240000000611992225100101001010010828490149269533003330033286323287631001010020300203003338011100211091010010100000009000640216422993910000100103003430034300343003430034
10024300332250000000611992225100101001210010828490149269533003330033286323287631001010020300203003338011100211091010010100000009600640216222993910000100103003430034300343003430034
1002430033225000000061199222510010100101001082849014926953300333003328632328763100101002030020300333801110021109101001010000000000640216222993910000100103003430034300343003430034
10024300332250000000611992225100101001010010828490149269533003330033286323287631001010020300203003338011100211091010010100000008700640216222993910000100103003430034300343003430034
100243003322500000001031992225100101001010010828490149269533003330033286323287631001010020300203003338011100211091010010100000008700640216222993910000100103003430034300343003430034
10024300332250100000611992225100101001010010828490149269533003330033286323287631001010020300203003338011100211091010010100000009000640216222993910000100103003430034300343003430034
10024300332250000000611992225100101001010010828490149269533003330033286323287631001010020300203003338011100211091010010100000008100640216222993910000100103003430034300343003430034

Test 3: Latency 1->3

Code:

  umaddl x0, w1, w0, x2
  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)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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1020430068225002414519922251010010100101008289401492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034
10204300332250006119922251010010100101358289401492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034
10204300332250006119922251010010100101008289401492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034
102043003322500013219922251010010100101008289401492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034
1020430033225000111419922251010010100101008289401492695330033300332861032874110100102003020030033748111020110099100101001000000710216222993910000101003003430034300343003430034
10204300332250006119922251010010100101008289401492695330033300332861032874110100102003020030033374111020110099100101001000200710216222993910000101003003430034300343003430034
10204300332250006119922251010010100101008289401492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034
10204300332250006119922251010010100101008289401492695330033300332861032874110207102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034
10205300332250006119922251010010100101008289401492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034
10204300332250008319922251010010100101008289401492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)03l1i tlb fill (04)mmu table walk data (08)091e3f4d51schedule 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 miss (a1)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100243003322400006119922251001010010100108284900492695330033300332863232876310010100203002030033380111002110910100101000030640216222993910000100103003430034300343003430034
100243003322500008919922251001010010100108284900492695330033300332863232876310010100203002030033380111002110910100101000060640216222993910000100103003430034300343003430034
100243003322500006119922251001010010100108284900492695330033300332863232876310010100203002030033380111002110910100101000090640216222993910000100103003430034300343003430034
1002430033225000061199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010000720640216222993910000100103003430034300343003430034
100243003322500006119922251001010010100108284900492699630077300332863232876310010100203002030033380111002110910100101000090640216222993910000100103003430034300343003430034
1002430033225000061199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010000930640216222993910000100103003430034300343003430034
1002430033225000061199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010000990640216222993910000100103003430034300343003430034
1002430033225000061199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010000780640216222993910000100103003430034300343003430034
1002430033225000061199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010000960640216222993910000100103003430034300343003430034
1002430033225000061199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010000900640216222993910000100103003430034300343003430034

Test 4: Latency 1->4

Code:

  umaddl x0, w1, w2, x0
  mov x0, 1
  mov x1, 2

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

Result (median cycles for code): 1.0037

retire uop (01)cycle (02)031e3f51schedule 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)9faccfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10204100377504825101001010010100704981496957100371003787143874510100102003020010037162111020110099100101001000710116111003310000101001003810038100381003810038
10204100377604825101001010010100704981496957100371003787143874510100102003020010037162111020110099100101001000710116111003310000101001003810038100381003810038
10204100377504825101001010010100704981496957100371003787143874510100102003020010037162111020110099100101001000710116111003310000101001003810038100381003810038
10204100377504825101001010010100704980496957100371003787143874510100102003020010037162111020110099100101001000710116111003310000101001003810038100381003810038
10204100377504825101001010010100704980496957100851003787143874510100102003020010037162111020110099100101001000710116111003310000101001003810038100381003810038
10204100377604825101001010010100704980496957100371003787143874510100102003020010037162111020110099100101001000710116111003310000101001003810038100381003810038
10204100377504825101001010010100704981496957100371003787143874510100102003020010037162111020110099100101001000710116111003310000101001003810038100381003810038
1020410037754264825101001010010100704981496957100371003787143874510100102003020010037162111020110099100101001000710116111003310000101001003810038100381003810038
10204100377564825101001010010100704980496957100371003787143874510100102003020010037162111020110099100101001000710116111003310000101001003810038100381003810038
10204100377504825101001010010100704980496957100371003787143874510100102003020010037162111020110099100101001000710116111003310000101001003810038100381003810038

1000 unrolls and 10 iterations

Result (median cycles for code): 1.0037

retire uop (01)cycle (02)0309191e3f51schedule 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)? int retires (ef)f5f6f7f8fd
1002410037760004825100101001010010700480496957100371003787363876710010100203002010037164311002110910100101000640516331003310000100101003810038100381003810038
1002410037750094825100101001010010700481496957100371003787363876710010100203002010037164111002110910100101000640316331003310000100101003810038100381003810038
100241003776001221946100331001010010700480496957100371003787363876710010100203002010037164111002110910100101000640316331003310000100101003810038100381003810038
1002410037750004825100101001010010700481496957100371003787363876710010100203002010037164111002110910100101000640316331003310000100101003810038100381003810038
1002410037750004825100101001010010700481496957100371003787363876710010100203002010037164111002110910100101000640316331003310000100101003810038100381003810038
1002410037750004825100101001010010700480496957100371003787363876710010100203002010037164111002110910100101000640316331003310000100101003810085100381003810038
1002410037750004825100101001010010700480496957100371003787363876710010100203002010037164111002110910100101000640316331003310000100101003810038100381003810038
10024100377500124825100101001010010700481496957100371003787363876710010100203002010037164111002110910100101010640316331003310000100101003810038100381003810038
1002410037750004825100101001010010700481496957100371003787363876710010100203002010037164111002110910100101000640316331003310000100101003810038100381003810038
1002410037750004825100101001010010700481496957100371003787363876710010100203002010037164111002110910100101000640316331003310000100101003810038100381003810038

Test 5: throughput

Count: 8

Code:

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

(fused SUBS/B.cc loop)

100 unrolls and 100 iterations

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

retire uop (01)cycle (02)03l2 tlb miss data (0b)18191e1f3a3f51schedule 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)st unit uop (a7)l1d cache writeback (a8)a9acbranch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
802048003560000000046258010080100801004005001497695508003580035699643699938010080200240200800351641180201100991008010010000000005110125118003180000801008003680036800368003680036
802048003559900000046258010080100801244005001497695508003580035699643699938010080200240200800351641180201100991008010010000000005110116118003180000801008003680036800368003680036
80204800355990000001652258010080100801004005001497695508003580035699643699938010080200240200800351641180201100991008010010000000005110116118003180000801008003680036800368003680036
8020480066600000000711258010080100801004005001497695508003580035699643699938010080200240200800351641180201100991008010010000000005110116118007080000801008003680036800368003680036
80204800356000000001829258010080100801004005001497695508003580035699643699938010080200240200800351641180201100991008010010000000005110116118003180000801008003680036800368003680036
8020480035599000000711258010080100801004005001497695508003580035699643699938010080200240200800351641180201100991008010010000000359505110116118003180000801008003680036800368003680036
802048003559901615211214080462580100801008010040050014977633080035800356996414701588027680434240601803971646180201100991008010010000000005122125118003180000801008103080990811738103281158
8020481118607024200146258010080100801004005001497695508003580035699643699938010080337240991803971648180201100991008010010000010305110116118003180000801008003680036800368003680036
802048003559900000046258010080100801004005001497695508003580035699643700218010080200240200800351641180201100991008010010000010005110116118003180000801008003680036800368003680036
802048003559900000046258010080100801004005001497695508003580035699648699938010080200240200800351641180201100991008010010022100005110116118003180253801008062380308805358058380622

1000 unrolls and 10 iterations

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

retire uop (01)cycle (02)03mmu table walk data (08)18191e3f51schedule 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)acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ea? int retires (ef)f5f6f7f8fd
80024800356000000462580010800108001040005000497695508003580035699863700158001080020240020800351641180021109108001010000050201616151580032800000800108003680036800368003680036
800248003560000015462580010800108001040005000497695508003580035699863700158001080020240020800351641180021109108001010000050201816141380032800000800108003680036800368003680036
80024800355990000462580010800108001040005000497695508003580035699863700158001080020240020800351641180021109108001010000050201416171180032800000800108003680036800368003680036
80024800356000000462580010800108001040005000497695508003580035699863700158001080020240020800351641180021109108001010300050201416191580032800000800108003680036800368003680036
80024800355990000462580010800108001040005000497695508003580035699863700158001080020240020800351641180021109108001010000050201516131080032800000800108003680036800368003680036
80024800355990000462580010800108001040005000497695508003580035699863700158001080020240020800351641180021109108001010000050201316161780032800000800108003680036800368003680036
800248003559900007112580010800108001040005000497695508003580035699863700158001080020240020800351641180021109108001010000050201216151680032800000800108003680036800368003680036
800248007360000007112580010800108001040005000497695508003580035699863700158001080020240020800351641180021109108001010000050201716111680032800000800108003680036800368003680036
800248003559900004625800108001080010400050004976955080035800356998637001580010800202400208003516411800211091080010105400050201616131380032800000800108003680036800368003680036
80024800356000000462580010800108001040005000497695508003580035699863700158001080020240020800351641180021109108001010000050201416161780032800000800108003680036800368003680036