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

MSUB (64-bit)

Test 1: uops

Code:

  msub x0, x0, x1, 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)031e3f4d51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)696d6emap 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)ld unit uop (a6)l1d cache writeback (a8)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10043033220611922251000100010008144040303330332760328911000100030003033380111001100002000731161129391000100030343034303430343034
10043033230611922251000100010008144040303330332760328911000100030003033380111001100000000731161129391000100030343034303430343034
10043033220611922251000100010008144040303330332760328911000100030003033380111001100000003731161129391000100030343034303430343034
10043033230611922251000100010008144040303330332760328911000100030003033380111001100000000731161129391000100030343034303430343034
10043033230611922251000100010008144040303330332760328911000100030003033380111001100000000731161129391000100030343034303430343034
10043033230821922251000100010008144040303330332760328911000100030003033380111001100000000731161129391000100030343034303430343034
10043033220611922251000100010008144040303330332760328911000100030003033380111003100000000731161129391000100030343034303430343034
10043033230821922251000100010008144040303330332760328911000100030003033380111001100000000731161129391000100030343034303430343034
100430332202511922251000100010008144040303330332760328911000100030003033380111001100000000731161129391000100030343034303430343034
10043033230611922251000100010008144040303330332760328911000100030003033380111001100000000731161129391000100030343034303430343034

Test 2: Latency 1->2

Code:

  msub x0, x0, x1, 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)03l1i tlb fill (04)181e1f3f4d51schedule 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)acc2cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1020430033225102706119922251010010100101008289400492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034
10204300332240000103619922251010010100101008289400492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034
102043003322500006119922251010010100101008289400492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034
102043003322500006119922251010010100101008289400492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034
102043003322500006119922251010010100101008289401492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034
102043003322500006119922251010010100101008289400492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910013101003003430034300343003430034
102043003322500162010319922251010010100101008289400492695330033300332861032874110100102003020030033374111020110099100101001001000710216222993910000101003003430034300343003430034
1020430033224004508219922251010010100101008289401492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034
102043003322500008219922251010010100101008289401492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034
102043003322500006119922251010010100101008289400492695330033300332861032874110100102003020030033374111020110099100101001000000710216222993910000101003003430034300343003430034

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)9fst unit uop (a7)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
10024300332250611992225100101001010010828490149269533003330033286323287631001010020300203003338011100211091010010100030640316222993910000100103003430034300343003430034
10024300332240611992225100101001010010828490049269533003330033286323287631001010020300203003338011100211091010010100000640216222993910000100103003430034300343003430034
10024300332250611992225100101001710111828490049269533003330033286323287631001010020300203003338011100211091010010100000640216222993910000100103003430034300343003430034
10024300332250611992225100101001010010828490049269533003330033286323287631001010020300203003338011100211091010010100000640216222993910000100103003430034300343003430034
10024300332250611992225100101001010010828490049269533003330033286323287631001010020300203003338011100211091010010100000640216222993910000100103003430034300343003430034
10024300332250611992225100101001010010828490049269533003330033286323287631001010020300203003338011100211091010010100000640216222993910000100103003430034300343003430034
10024300332250611992225100101001010010828490049269533003330033286323287631001010020300203003338011100211091010010100000640216222993910000100103003430034300343003430034
10024300332250611992225100101001010010828490049269533003330033286323287631001010020300203003338011100211091010010100000640216222993910000100103003430034300343003430034
10024300332250611992225100101001010010828490049269533003330033286323287631001010020300203003338011100211091010010100000640216222993910000100103003430034300343003430034
10024300332250611992225100101001010010828490049269533003330033286323287631001010020300203003338011100211091010010100000640216222993910000100103003430034300343003430034

Test 3: Latency 1->3

Code:

  msub x0, x1, x0, 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 instruction (0a)1e3f4d51schedule 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)acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10204300332250061199222510100101001010082894004926953300333003328617628736101001020830224300333741110201100991001010010023111718016002995010000101003003430034300343003430034
10204300332240061199222510100101001010082894004926953300333003328617628737101001020830224300333741110201100991001010010053111718016002994910000101003003430034300343003430034
102043003322500611992225101001010010100828940049269533003330033286177287371010010208302243003337411102011009910010100100081111717016002995010000101003003430034300343003430034
102043003322500611992225101001010010100828940149269533003330033286173287411010010200302003003337411102011009910010100100229000710116112993910000101003003430034300343003430034
102043003322500611992225101001010010100828940149269533003330033286107287411010010200302003003337411102011009910010100100276000710116112993910000101003003430034300343003430034
102043003322500611992225101001010010100828940049269533003330033286103287411010010200302003003337411102011009910010100100273000710116112993910000101003003430034300343003430034
102043016422500611992225101001010010100828940049269533003330033286103287411010010200302003003337411102011009910010100100263000710116112993910000101003003430034300343003430034
1020430033225007261992225101001010010100828940049269533003330033286103287411010010200302003003337411102011009910010100100303000710116112993910000101003003430034300343003430034
102043003322500611992225101001010010100828940049269533003330033286103287411010010200302003003337411102011009910010100100296000710116112993910000101003003430034300343003430034
102043003322500611992225101001010010100828940049269533003330033286103287411010010200302003003337411102011009910010100100283000710116112993910000101003003430034300343003430034

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 cache writeback (a8)accdcfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1002430033224061199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010000640516542993910000100103003430034300343003430034
1002430033225061199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010000640516552993910000100103003430034300343003430034
100243003322516261199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010100640516452993910000100103003430034300343003430070
1002430033225061199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010000640516552993910000100103003430034300343003430034
1002430033225061199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010000640516552993910000100103003430034300343003430034
1002430033224061199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010000640416552993910000100103003430034300343003430034
1002430033225061199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010030640416552993910000100103003430034300343003430034
1002430033225061199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010001640416452993910000100103003430034300343003430034
1002430033225061199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010000640516452993910000100103003430034300343003430034
1002430033225061199222510010100101001082849004926953300333003328632328763100101002030020300333801110021109101001010000640416452993910000100103003430034300343003430034

Test 4: Latency 1->4

Code:

  msub x0, x1, x2, 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
102041003775048251010010100101007049804969571003710037871438745101001020030200100371621110201100991001010010000710216111003310000101001003810038100381003810038
102041003775297428251010010100101007049804969571003710037871438745101001020030200100371621110201100991001010010000710116111003310000101001003810038100381003810038
102041003775048251010010100101007049814969571003710037871438745101001020030200100371621110201100991001010010000710116111003310000101001003810038100381003810038
102041003775048251010010100101007049804969571003710037871438745101001020030200100371621110201100991001010010000710116111003310000101001003810038100381003810038
1020410037750482510100101001010070498049695710037100378714387451010010200302001003716211102011009910010100100096710116111003310000101001003810038100381003810038
102041003775048251010010100101007049804969571003710037871438745101001020030200100371621110201100991001010010000710116111003310000101001003810038100381003810038
1020410037750428251010010100101007049814969571003710037871438745101001020030200100371621110201100991001010010010710116111003310000101001003810038100381003810038
102041003775048251010010100101007049804969571003710037871438745101001020030200100371621110201100991001010010000710116111003310000101001003810038100381003810038
10204100377627648251010010100101007049804969571003710037871438745101001020030200100371621110201100991001010010000710116111003310000101001003810038100381003810038
1020410037752448251010010100101007049814969571003710037871438745101001020030200100371621110201100991001010010000710116111003310000101001003810038100381003810038

1000 unrolls and 10 iterations

Result (median cycles for code): 1.0037

retire uop (01)cycle (02)033a3f51schedule 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)9faccfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100241003775274251001010010100107004849695710037100378736387671001010020300201003716411100211091010010100643111611101003310000100101003810038100381003810038
100241003775253251001010010100107004849695710037100378736387671001010020300201003716411100211091010010100643101610101003310000100101003810038100381003810038
100241003775253251001010010100107004849695710037100378736387671001010020300201003716411100211091010010100643101610101003310000100101003810038100381003810038
100241003775253251001010010100107004849695710037100378736387671001010020300201003716411100211091010010100643101610101003310000100101003810038100381003810038
100241003775253251001010010100107004849695710037100378736387671001010020300201003716411100211091010010100643101610101003310000100101003810038100381003810038
10024100377527425100101001010010700484969571003710037873638767100101002030020100371641110021109101001010064310165101003310000100101003810038100381003810038
10024100377525325100101001010010700484969571003710037873638767100101002030020100371641110021109101001010064310161081003310000100101003810038100381003810038
100241003775253251001010010100107004849695710037100378736387671001010020300201003716411100211091010010100643101610101003310000100101003810038100381003810038
1002410037752433251001010010100107004849695710037100378736387671001010020300201003716411100211091010010100643101610101003310000100101003810038100381003810038
100241003775253251001010010100107004849695710037100378736387671001010020300201003716411100211091010010100643121610101003310000100101003810038100381003810038

Test 5: throughput

Count: 8

Code:

  msub x0, x8, x9, x9
  msub x1, x8, x9, x9
  msub x2, x8, x9, x9
  msub x3, x8, x9, x9
  msub x4, x8, x9, x9
  msub x5, x8, x9, x9
  msub x6, x8, x9, x9
  msub x7, x8, x9, 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)60696a6d6emap 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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
802048003560005372580100801008010040050014976955800358003569964036999380100802002402008003516411802011009910080100100005110316228003180000801008003680036800368003680036
80204800355990462580100801008016640060704976955800358007669964036999380100802002402008003516411802011009910080100100005110216118003180000801008003680036800368003680036
802048003560012462580100801008010040050004976955800358003569964076999380100802002402008003516411802011009910080100100005110216228003180000801008003680036800368003680036
80204800355990462580100801008010040050014976955800358003569964036999380100802002402008003516411802011009910080100100005110116118003180000801008003680036800368003680036
80204800355990462580100801008010040050014976955800358003569964036999380100802002402008003516411802011009910080100100005110116118003180000801008003680036800368003680036
80204800355990462580100801008010040050004976955800358003569964036999380100802002402008003516411802011009910080100100005110116118003180000801008003680036800368003680036
80204800355990672580100801008010040050014976955800358003569964036999380100802002402008003516411802011009910080100100005110216228003180000801008003680036800368003680036
80204800356000672580100801008010040050004976955800358003569964036999380100802002402008003533611802011009910080100100205110116218003180000801008003680036800368003680036
80204800355990462580100801008010040050004976955800358003569964036999380100802002402008003516411802011009910080100100005110216228003180000801008003680036800368003680036
80204800355990462580100801008010040050004976955800358003569964036999380100802002402008003516411802011009910080100100235110116118003180000801008003680036800368003680036

1000 unrolls and 10 iterations

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

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 cache writeback (a8)a9acbranch cond mispred nonspec (c5)cfd0d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)ea? int retires (ef)f5f6f7f8fd
80024800355990000711258001080010800104001571497695580035800356998637001580032800202400208003516411800211091080010100000502039164380032800000800108003680036800368003680036
8002480035599000046258001080010800104000500497089180035800356998637001580010800202400208003516411800211091080010101030502064164480032800000800108003680036800368003680036
8002480035599000046258001080010800104000500497695580035800356998637001580010800202400208003516411800211091080010100000502033164380032800000800108003680036800368003680036
8002480035600000046258001080010800104000500497695580035800356998637001580010800202400208003516411800211091080010101000502034164380032800000800108003680036800368003680036
8002480035599000046258001080010800104000500497695580035800356998637001580010800202400208003516411800211091080010100000502034164480032800000800108003680036800368003680081
80024800355990024046258001080010800104000500497695580035800356998637001580010800202400208003516411800211091080010100000502034163480032800000800108003680036800368003680036
8002480035599000046258001080010800104000501497695580035800356998637001580010800202400208003516411800211091080010100000502034164380032800000800108003680036800368003680036
8002480035600000046258001080010800104000500497695580035800356998637001580010800202400208003516411800211091080010100000502033164380032800000800108003680036800368003680036
8002480035599000046258001080010800104000500497695580035800356998637001580010800202400208003516411800211091080010100000502034163480032800000800108003680036800368003680036
8002580035600000046258001080010800104000501497695580035800356998637001580010800202400208003516411800211091080010100000502034164380032800000800108003680036800368003680036