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

CRC32X

Test 1: uops

Code:

  crc32x w0, w0, x1
  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)03mmu table walk data (08)l2 tlb miss data (0b)191e1f3f4d51schedule 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 cache writeback (a8)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1004303323000008419222510001000100081440403033303327603289110001000200030333801110011000003731161129391000100030343034303430343034
1004303323000008219222510001000100081440403033303327603289110001000200030333801110011000000731161129391000100030343034303430343034
1004303323000006119222510001000100081440403033303327603289110001000200030333801110011000300731161129391000100030343034303430343034
1004303323000006119222510001000100081440403033303327603289110001000200030333801110011000000731161129391000100030343034303430343034
1004303322000006119222510001000100081440403033303327603289110001000200030333801110011000000731161129391000100030343034303430343034
1004303322000008219222510001000100081440403033303327603289110001000200030333801110011000000731161129391000100030343034303430343034
1004303323000006119222510001000100081440403033303327603289110001000200030333801110011000103731161129391000100030343034303430343034
1004303323000006119222510001000100081440403076303327603289110001000200030333801110011000000731161129401000100030343034303430343034
1004303322000006119222510001000100081440493033303327603289110001000200030333801110011000000731161129391000100030343034307830343034
1004303323000006119222510001000100081440403033303327603289110001000200030333801110011000000731161129391000100030343034303430343034

Test 2: Latency 1->2

Code:

  crc32x w0, w0, x1
  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)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)9fst unit uop (a7)l1d cache writeback (a8)a9acbranch mispred nonspec (cb)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
102043003322406119922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
102043003322506119922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
1020430033225014919922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
102043003322506119922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
102043003322506119922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000100710116112993910000101003003430034300343003430034
102043003322506119922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
102043003323306119922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
1020430033225012419922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
102043003322606119922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
102043003322406119922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)03181e3a3f4d51schedule 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)a9acc2branch mispred nonspec (cb)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100243003322500061199222510010100101001082849004926953300333003328632328763100101002020140300333801110021109101001010003707500640316222993910000100103003430034300343003430034
10024300332250006119922251001010010100108284901492695330033300332863232876310010100202002030033380111002110910100101000440000640216222993910000100103003430034300343003430034
10024300332250006119922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000002400640216222993910000100103003430034300343003430034
10024300332250006119922251001010010100108284901492695330033300332863232876310010100202002030033380111002110910100101000350300640216222993910000100103003430034300343003430034
10024300332250006119922251001010010100108284901492695330033300332863232876310010100202002030033380111002110910100101000460000640216222993910000100103003430034300343003430034
10024300332250006119922251001010010100108284901492695330033300332863232876310010100202002030033380111002110910100101000430000640216222993910000100103003430034300343003430034
10024300332250006119922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000670600640216222993910000100103003430034300343003430034
10024300332250006119922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000001800640216222993910000100103003430034300343003430034
10024300332250006119922251001010010100108284901492695330033300332863232876310010100202002030033760111002110910100101000440000640216222993910000100103003430034300343003430034
1002430033225000611992225100101001010010828490049269533003330033286323287631001010020200203003338011100211091010010100080001640216222993910000100103003430034300343003430034

Test 3: Latency 1->3

Code:

  crc32x w0, w1, x0
  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)9fld unit uop (a6)l1d cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10204300332250611992235101001010010100828940149269533003330033286103287411010010200202003003337411102011009910010100100000710216222993910000101003003430034300343003430034
10204300332250611992225101001010010100828940149269533003330033286103287411010010200202003003337411102011009910010100100000710216222993910000101003003430034300343003430034
10204300332250611992225101001010010100828940149269533003330033286103287411010010200202003003337411102011009910010100100000710216222993910000101003003430034300343003430034
10204300332250611992225101001010010100828940149269533003330033286103287411010010200202003003337411102011009910010100100300710216222993910000101003003430034300343003430034
10204300332250611992225101001010010100828940149269533003330033286103287411010010200202003003337411102011009910010100100000710216222993910000101003003430034300343003430034
10204300332250611992225101001010010100828940149269533003330033286103287411010010200202003003337411102011009910010100100000710216222993910000101003003430034300343003430034
10204300332250611992225101001010010100828940149269533003330033286103287411010010200202003003337411102011009910010100100000710216222993910000101003003430034300343003430034
10204300332250611992225101001010010100828940149269533003330033286103287411010010200202003003337411102011009910010100100000710216222993910000101003003430034300343003430034
10204300332250611992225101001010010100828940149269533003330033286103287411010010200202003003337411102011009910010100100010710216222993910000101003003430034300343003430034
10204300332250611992225101001010010100828940149269533003330033286103287411010010200202003003337411102011009910010100100013710216222993910000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)030f1e3f4d51schedule 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
10024300332242061199222510010100101001082849014926953300333003328632328763100101002020020300333801110021109101001010000640216222993910000100103003430034300343003430034
10024300332250061199222510010100101001082849014926953300333003328632328763100101002020020300333801110021109101001010000640216222993910000100103003430034300343003430034
10024300332240061199222510010100101001082849014926953300333003328632328763100101002020020300333801110021109101001010000640216222993910000100103003430034300343003430034
10024300332250061199222510010100101001082849004926953300333003328632328763100101002020020300333801110021109101001010000640216222993910000100103003430034300343003430034
10024300332330061199222510010100101001082849014926953300333003328632328763100101002020020300333801110021109101001010000640216222993910000100103003430034300343003430034
10024300332250061199222510010100101001082849014926953300333003328632328763100101002020020300333801110021109101001010000640216222993910000100103003430034300343003430034
10024300332250061199222510010100101001082849014926953300333003328632328763100101008020020300333801110021109101001010000640216222993910000100103003430034300343003430034
10024300332250061199222510010100191001082849004926953300333003328632328763100101002020020300333801110021109101001010000640216222993910000100103003430034300343003430034
10024300332250061199222510010100101001082849014926953300333003328632328763100101002020020300333801110021109101001010000640316222993910000100103003430034300343003430034
10024300332250089199222510010100101001082849014926953300333003328632328763100101002020020300333801110021109101001010000640216222993910000100103003430034300343003430034

Test 4: throughput

Count: 8

Code:

  crc32x w0, w8, x9
  crc32x w1, w8, x9
  crc32x w2, w8, x9
  crc32x w3, w8, x9
  crc32x w4, w8, x9
  crc32x w5, w8, x9
  crc32x w6, w8, x9
  crc32x w7, w8, x9
  mov x8, 9
  mov x9, 10

(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)03mmu table walk instruction (07)mmu table walk data (08)l2 tlb miss instruction (0a)1e3f51schedule 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
80204800356000000462580100801008010040050014976955800358003569964036999380100802001602008003516411802011009910080100100005110316228003180000801008003680036800368003680036
802048003559900005882580100801008010040050014976955800358003569964036999380100802001602008003516411802011009910080100100005110216228003180000801008003680036800368003680036
802048003560000004625801008010080100400500149769558003580035699640206999380100802001602008003516411802011009910080100100005110216228003180000801008003680036800368003680036
80204800355990000462580100801008010040050014976955800358003569964036999380100802001602008003516411802011009910080100100005110216228003180000801008003680036800368003680036
80204800356000100462580100801008010040050014976955800358003569964036999380100802001602008003516411802011009910080100100005110216228003180000801008003680036800368003680036
80204800355990000462580100801008010040050014976955800358003569964036999380100802001602008003516411802011009910080100100005110216228003180000801008003680036800368003680036
80204800355990000462580100801008010040050014976955800358003569964036999380100802001602008003516411802011009910080100100005110216228003180000801008003680036800368003680036
80204800355990000462580100801008010040050014976955800358003569964036999380100802001602008003516411802011009910080100100005110216228003180000801008003680036800368003680036
80204800355990000462580100801008010040050014976955800358003569964036999380100802001602008003516411802011009910080100100005110216228003180000801008003680036800368003680036
802048003560000001322580100801008010040050014976955800358003569994036999380100802001602008003516411802011009910080100100005110216228003180000801008003680036800368003680036

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)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)accfd2l1i cache miss demand (d3)d5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)eb? int retires (ef)f5f6f7f8fd
800248003559904625800108001080010400050497695580035800356998637001580010800201600208003516411800211091080010100005020008165580032800000800108003680036800368003680036
8002480035600071725800108001080010400050497695580035800356998637001580010800201600208003516411800211091080010100005020004165880032800000800108003680036800368003680036
800248003560004625800108001080010400050497695580035800356998637001580010800201600208003516411800211091080010100095020008165580032800000800108003680036800368003680036
800248003559904625800108001080010400050497695580074800356998637001580010800201600208003516411800211091080010100005020009165580032800000800108003680036800368003680036
8002480035599046258001080010800104000504976955800358003569986237001580010800201600208003516411800211091080010100005020004168880032800000800108003680036800368003680036
800248003559904625800108001080010400050497695580035800356998637001580010800201600208003516411800211091080010100005020007165580032800000800108003680036800368003680036
800248003559904625800108001080010400050497695580035800356998637001580010800201600208003516411800211091080010100005020008165580032800000800108003680036800368003680036
800248003559904644800108001080010400050497695580035800356998637001580010800201600208003516411800211091080010100005020005167780032800000800108003680036800368003680036
80024800356000230925800108001080010400050497695580035800356998637001580010800201600208003516411800211091080010100005020007165580032800000800108003680036800368003680036
800248003560004647800108001080010400050497695580035800356998637001580010800201600208003516411800211091080010100005020005165580032800000800108003680036800368003680036