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

SMSUBL

Test 1: uops

Code:

  smsubl 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)03181e3f4d51schedule 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)a9accfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1004303322006119222510001000100081440040303330332760328911000100030003033380111001100000007303161129391000100030343034303430343034
1004303323006119222510001000100081440040303330332760328911000100030003033380111001100000007301161129391000100030343034303430343034
1004303323006119222510001000100081440040303330332760328911000100030003033380111001100000007301161129391000100030343034303430343034
1004303322006119222510001000100081440140303330332760328911000100030003033380111001100000007301161129391000100030343034303430343034
1004303322066119222510001000100081440140303330332760328911000100030003033380111001100000007301161129391000100030343034303430343034
10043033290029219222510001000100081440140303330332760328911000100030003033380111001100000007301161129391000100030343034303430343034
1004303324006119222510001000100081440140303330332760328911000105130003033380111001100000007301161129391000100030343034303430343034
10043033230032719222510001000100081440040303330332760328911000100030003033380111001100000007301161129391000100030343034303430343034
1004303323006119222510001000100081440040303330332760328911000100030003033380111001100000007301161129391000100030343034303430343034
1004303323006119222510001000100081440140303330332760328911000100030003033380111001100000007301161129391000100030343034303430343034

Test 2: Latency 1->2

Code:

  smsubl 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)031e1f3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)696a6b6d6emap 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
10204300332240061199222510100101001010082894049269530300333003328610328741101001020030200300333741110201100991001010010010710116112993910000101003003430034300343003430034
10204300332250061199222510131101001010082894049269530300333003328610328741101001020030200300333741110201100991001010010000710116112993910026101003003430034300343003430034
10204300332250061199222510100101001010082894049269530300333003328610328741101001020030200300333741110201100991001010010000710116112993910000101003003430034300343003430034
10204300332250061199222510100101001010082894049269530300333003328610328741101001020030200300333741110201100991001010010000710116112993910000101003003430034300343003430034
10204300332250061199222510100101001010082894049269530300333003328610328741101001020030200300333741110201100991001010010000710116112993910000101003003430034300343003430034
1020430033225360611992225101001010010100828940492695303006430033286103287411010010200302003003337411102011009910010100100021710116112993910000101003003430034300343003430034
10204300332250061199222510100101001010082894049269530300333003328610328741101001020030200300333741110201100991001010010000710116112993910000101003003430034300343003430034
10204300332250061199222510100101001010082894049269530300333003328610328741101001020030200300333741110201100991001010010010710116112993910000101003003430034300343003430034
10204300332250061199222510100101001010082894049269530300333003328610328741101001020030200300333741110201100991001010010000710116112993910000101003003430034300343003430034
1020430033225006119922251010010100101008289404926953030033300332861032874110100102003020030033374111020110099100101001000180710116112993910000101003003430034300343003430034

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)6061696a6b6d6emap 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)accfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10024300332255916119922251001010010100108284901249269530300333003328632328763100101002030020300333801110021109101001010006401216222993910000100103003430034300343003430034
10024300332244386119922251001010010100108284901149269530300333003328632328763100101002030020300333801110021109101001010006401216222993910000100103003430034300343003430034
10024300332252766119922251001010010100108284901049269530300333003328632328763100101002030020300333801110021109101001010006401216222993910000100103003430034300343003430034
10024300332254266119922251001010010100108284901149269530300333003328632328763100101002030020300333801110021109101001010006401216222993910000100103003430034300343003430034
10024300332254146119922251001010010100108284901049269530300333003328632328763100101002030200300333801110021109101001010006401216222993910000100103003430034300343003430034
10024300332254506119922251001010010100108284900149269530300333003328632328763100101002030020300333801110021109101001010006401216222993910000100103003430034300343003430034
10024300332254446119922251001010010100108284900149269530300333003328632328763100101002030020300333801110021109101001010006401216222993910000100103003430034300343003430034
10024300332244896119922251001010010100108284901149269530300333003328632328763100101002030020300333801110021109101001010006401216222993910000100103003430034300343003430034
10024300332256906119922251001010010100108284901049269530300333003328632328763100101002030020300333801110021109101001010006401216222993910000100103003430034300343003430034
10024300332254476119922251001010010100108284901149269530300333003328632328763100101002030020300333801110021109101001010006400216222993910000100103003430034300343003430034

Test 3: Latency 1->3

Code:

  smsubl 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)03l2 tlb miss data (0b)0e1e3f4d51schedule 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)acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1020430033225000611992225101001010010100828940149269533003330033286103287411010010200302003003337411102011009910010100100000710216112993910000101003003430034300343003430034
1020430033224000611992225101001010010100828940149269533003330033286103287411010010200302003003337411102011009910010100100030710116112993910000101003003430034300343003430034
1020430033224000611992225101001010010100828940349269533003330033286103287411010010200302003003337411102011009910010100100060710116112993910000101003003430034300343003430034
10204300332250006119922251010010100101008289401492695330033300332861032874110100102003020030033374111020110099100101001001870710116112993910000101003003430034300343003430034
1020430033225000611992225101001010010100828940149269533003330033286103287411010010200302003003337411102011009910010100100030710116112993910000101003003430034300343003430034
1020430033225000611992225101001010010100828940149269533003330033286103287411010010200302003003337411102011009910010100100060710116112993910000101003003430034300343003430034
1020430033225000611992225101001010010100828940149269533003330033286103287411010010200302003003337411102011009910010100100060710116112993910000101003003430034300343003430034
1020430033225000611992225101001010010100828940149269533003330033286103287411010010200302003003337411102011009910010100100060710116112993910000101003003430034300343003430034
1020430033225000611992225101001010010100828940149269533003330033286103287411010010200302003003337411102011009910010100100060710116112993910000101003003430034300343003430034
1020430033225000611992225101001010010100828940149269533003330033286103287411010010200302003003337411102011009910010100100090710116112993910000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)03191e3f4d51schedule 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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10024300772251624708199104710010100331004382849014926953030033300332863232876310010100203002030033380111002110910100101000640216222993910000100103003430034300343003430034
100243003322501261199222510010100101001082849004926953030033300332863232876310010100203002030033380111002110910100101000640216222993910000100103003430034300343003430034
10024300332250061199222510010100101001082849004926953030033300332863232876310010100203002030033380111002110910100101000640216222993910000100103003430034300343003430034
1002430033225066661199222510010100101001082849004926953030033300332863232876310010100203002030033380111002110910100101000640216222993910000100103003430034300343003430034
1002430033225058861199222510010100101001082849004926953030033300332863232876310043100203002030033380111002110910100101000640216222993910000100103003430034300343003430034
1002430033224046261199222510010100101001082849004926953030033300332863232876310010100203002030033380111002110910100101000640216222993910000100103003430034300343003430034
1002430033225042061199222510010100101001082849004926953030033300332863232876310010100203002030033380111002110910100101000640216222993910000100103003430034300343003430034
10024300332250061199222510010100101001082849004926953030033300332863232876310010100203002030033380111002110910100101000640216222993910000100103003430034300343003430034
1002430033225040261199222510010100101001082849004926953030033300332863232876310010100203002030033380111002110910100101000640216222993910000100103003430034300343003430034
1002430033225021661199222510010100101001082849004926953030033300332863232876310010100203002030033380111002110910100101000640216222993910000100103003430034300343003430034

Test 4: Latency 1->4

Code:

  smsubl 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)9fl1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
102041003775048251010010100101007049814969571003710037871438745101001020030200100371621110201100991001010010000710116111003310000101001003810038100381003810038
102041003775048251010010100101007049814969571003710037871438745101001020030200100371621110201100991001010010000710116111003310000101001003810038100381003810038
102041003775048251010010100101007049814969571003710037871438745101001020030200100371621110201100991001010010000710116111003310000101001003810038100381003810038
102041003775048251010010100101007049814969571003710037871438745101001020030200100371621110201100991001010010000710116111003310000101001003810038100381003810038
102041003775048251010010100101007049814969571003710037871438745101001020030200100371621110201100991001010010000710116111003310000101001003810038100381003810038
102041003775048251010010100101007049814969571003710037871438745101001020030200100371621110201100991001010010000710116111003310000101001003810038100381003810038
1020410037750482510100101001010070498149695710037100378714387451010010200302001003716211102011009910010100100051710116111003310000101001003810038100381003810038
1020410037750482510100101001010070498149695710037100378714387451010010200302001003716211102011009910010100100015710116111003310000101001003810038100381003810038
102041003775048251010010100101007049814969571003710037871438745101001020030200100371621110201100991001010010003710116111003310000101001003810038100381003810038
102041003775048251010010100101007049814969571003710037871438745101001020030200100371621110201100991001010010009710116111003310000101001003810038100381003810038

1000 unrolls and 10 iterations

Result (median cycles for code): 1.0037

retire uop (01)cycle (02)0309l2 tlb miss data (0b)1e3f51schedule 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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10024100377500117482510010100101001070048049695710037100378736387671001010020300201003716411100211091010010100000640316331003310000100101003810038100381003810038
100241003775000482510010100101001070048049695710037100378736387671001010020300201003716411100211091010010101000640316331003310000100101003810038100381003810038
100241003775000482510010100101001070048049695710037100378736387671001010020300201003716411100211091010010100000640316331003310000100101003810038100381003810038
100241003775000482510010100101001070048149695710037100378736387671001010020300201003716411100211091010010100000640316331003310000100101003810038100381003810038
100241003775000692510010100101001070048149695710037100378736387671001010020300201003716411100211091010010100000640316331003310000100101003810038100381003810038
1002410037750069482510010100101001070048149695710037100378736387671001010020300201003716411100211091010010100000640316331003310000100101003810038100381003810038
100241003775000692510010100101001070048149695710037100378736387671001010020300201003716411100211091010010100000640316331003310000100101003810038100381003810038
100241003775000482510010100101001070048149695710037100378736387671001010020300201003716411100211091010010100000640316331003310000100101003810038100381003810038
10024100377500231482510010100101001070048049695710037100378736387671001010020300201003716411100211091010010100000640316331003310000100101003810038100381003810038
10024100377500216482510010100101001070048049695710037100378736387671001010020300201003716411100211091010010100000640316331003310000100101003810038100381003810038

Test 5: throughput

Count: 8

Code:

  smsubl x0, w8, w9, x9
  smsubl x1, w8, w9, x9
  smsubl x2, w8, w9, x9
  smsubl x3, w8, w9, x9
  smsubl x4, w8, w9, x9
  smsubl x5, w8, w9, x9
  smsubl x6, w8, w9, x9
  smsubl 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)031e3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)60696a6b6d6emap stall dispatch (70)int prf full (71)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 mispred nonspec (cb)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
802048003659904625801008010080100400500149769550800358003569964017699938010080200240200800351641180201100991008010010011205110116118003180000801008003680036800368003680036
802048003559904625801008010080100400500049769550800358003569964036999380100802002402008003516411802011009910080100100012605110116118003180000801008003680036800368003680036
8020480035599046258010080100801004005001497695508003580035699640369993801008020024020080035164118020110099100801001000305110116118003180000801008003680036800368003680036
8020480035599046258014580100801004005001497695508003580035699640369993801008020024020080035164118020110099100801001000305110116118003180000801008003680036800368003680036
8020480035599046258010080142801004005001497695538003580035699640369993801008020024020080035164118020110099100801001000127105110124118003180000801008003680036800368003680036
80204800355990672580100801008010040050014976955080035800356996403699938010080200240200800351641180201100991008010010001205110117118003180000801008003680036800368003680036
8020480035600046258010080100801004005001497695508003580035699640369993801008020024020080035164118020110099100801001001005110116118003180000801008003680036800368003680036
8020480035600046258010080100801004005001497695508003580035699640369993801008020024020080035164118020110099100801001001005110116118003180000801008003680036800368003680036
8020480035599046258010080100801004005001497695508003580035699640369993801008020024020080035164118020110099100801001002005110116118003180000801008003680036800368003680036
8020480035599067258010080100801004005001497695508003580035699640369993801008020024020080035164118020110099100801001002305110116118003180000801008003680036800758003680036

1000 unrolls and 10 iterations

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

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)9fl1d cache writeback (a8)accdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
8002480035600046258001080010800104000500497695580035800356998637001580010800202400208003516411800211091080010100005020516538003280000800108003680036800368003680036
80024800356000711258001080010800104000500497695580035800356998637001580010800202400208003516411800211091080010100005020516358003280000800108003680036800368003680036
8002480035600046258001080010800104000501497695580035800356998637001580010800202400208003516411800211091080010100005020316358003280000800108003680036800368003680036
8002480035599046258003180073800774016550497781580716806246998637001580010800202400208003516411800211091080010100005020516358003280000800108003680036800368003680036
80024800356000711258001080010800104000501497695580035800356998637001580010800202400208003516411800211091080010100005020316558003280000800108003680036800368003680036
8002480035599046258001080010800104000500497695580035800356998637001580010800202400208003516411800211091080010100005020516538003280000800108003680036800368003680036
8002480035600046258001080010800104000501497695580035800356998637001580010800202400208003516411800211091080010100005020316358003280000800108003680036800368003680036
8002480035599046258001080010800104000501497695580035800356998637001580010800202400208003516411800211091080010101005020316358003280000800108003680036800368003680036
8002480035600946258001080010800104000500497695580035800356998637001580010800202400208007616411800211091080010100005020516538003280000800108003680036800368003680036
8002480035599046258001080010800104000500497695580035800356998637001580010800202400208003516411800211091080010100005020516358003280000800108003680036800368003680036