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

CRC32W

Test 1: uops

Code:

  crc32w w0, 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)033f4d51schedule 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
10043033226119222510001000100081440040303330332760328911000100020003033380111001100000731161129391000100030343034303430343034
10043033226119222510001000100081440140303330332760328911000100020003033380111001100003731161129391000100030343034303430343034
10043033236119222510001000100081440040303330332760328911000100020003033380111001100000731161129391000100030343034303430343034
100430332215619222510001000100081440040303330332760328911000100020003033380111001100000731161129391000100030343034303430343034
10043033236119222510001000100081440140303330332760328911000100020003033380111001100000731161129391000100030343034303430343034
10043033236119222510001000100081440040303330332760328911000100020003033380111001100000731161129391000100030343034303430343034
10043033236119222510001000100081440140303330332760328911000100020003033380111001100010731161129391000100030343034303430343034
100430332361192225100010001000814400403033303327603289110001000200030333801110011000380731161129391000100030343034303430343034
10043033226119222510001000100081440040303330332760328911000100020003033380111001100000731161129391000100030343034303430343034
10043033236119222510001000100081440040303330332760328911000100020003033380111001100040731161129391000100030343034303430343034

Test 2: Latency 1->2

Code:

  crc32w w0, 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)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)9faccfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
102043003322506119922251010010154101008289400492695330033300332861032874110100102002020030164690111020110099100101001003710116112993910000101003003430034300343003430034
1020430033225061199222510100101001010082894004926953300333003328610328741101001020020200300333741110201100991001010010012710116112993910000101003003430034300343003430034
102043003322406119922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000710116112993910000101003003430034300343003430034
1020430033224025119922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000724116112993910000101003003430034300343003430034
1020430033225053619922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000710116112993910000101003003430034300343003430034
102043003322506119922251013710148101008289400492695330033300332861032874110100102002020030033374111020110099100101001000710116112993910000101003003430034300343003430034
102043003322406119922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000710116112993910000101003003430034300343003430034
102043003322506119922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000710116112993910000101003003430034300343003430034
102043003323306119922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000710116112993910000101003003430034300343003430034
10204300332240111419922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000710116112993910000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)0309191e3f4d51schedule 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
1002430033225000611992225100101001010010828490049269530300333003328632328763100101002020020300333801110021109101001010103640216222993910000100103003430034300343003430034
1002430033225000611992225100101001010010828490049269530300333003328632328763100101002020020300333801110021109101001010003640216222993910009100103007730034300343003430034
1002430077224110611992225100101001010010828490049269530300333003328647328763100101002020020300333801110021109101001010000640216222993910000100103003430034300343003430034
1002430033225000611992225100101001010010828490049269530300333003328632328763100101002020020300333801110021109101001010100640216222993910000100103003430034300343003430034
10024300332250012611992225100101001010010828490049269530300333003328632328763100101002020020300333801110021109101001010000640216222993910000100103003430034300343003430034
1002430033225000821992225100101001010010828490049269530300333003328632328763100101002020020300333801110021109101001010000640216222993910000100103003430034300343003430034
10024300332250005361992225100101001010010828490049269530300333003328632328763100101002020020300333801110021109101001010000640216222993910000100103003430034300343003430034
1002430033225000841992225100101001010010828490049269530300333003328632328763100101002020020300333801110021109101001010006640216222993910000100103003430034300343003430034
1002430033225000611992225100101001010010828490049269530300333003328632328763100101002020020300333802110021109101001010000640216222993910000100103003430034300343003430034
1002430033225000611992225100101001010010828490049269530300333003328632328763100101002020020300333801110021109101001010000640219222993910000100103003430034300343003430034

Test 3: Latency 1->3

Code:

  crc32w w0, 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)03mmu table walk data (08)18191e3f4d51schedule 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)acbranch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
102043003322500006119922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000000710116112993910018101003003430034300343003430034
102043003322400006119922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000000710116112993910000101003003430034300343003430034
1020430033225000072619922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000000710116112993910000101003003430034300343003430034
102043003322500006119922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000000710116112993910000101003003430034300343003430034
102043003322500006119922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000000710116112993910000101003003430034300343016830034
102043024922410006119922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000000710116112993910000101003003430034300343003430034
102043003322500006119922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000000710116112993910000101003003430034300343003430034
102043003322500006119922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000000710116112993910000101003003430034300343003430034
102043003322400006119922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000000710116112993910000101003003430034300343003430034
102043003322500006119922251010010100101008289400492695330033300332861032874110100102002020030033374111020110099100101001000000710116112999310000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)0309191e3f4d51schedule 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 cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1002430033225000611992225100101001010010828490492695330033300332863232876310010100202002030033380111002110910100101000640216222993910007100103003430034300343003430034
1002430033225000611992225100101001010010828490492695330033300332863232876310010100202002030033380111002110910100101000640216222993910000100103003430034300343003430034
1002430033224000611992225100101001010010828490492695330033300332863232876310010100202002030033380111002110910100101000640216222993910000100103003430034300343003430034
1002430033224000611992225100101001010010828490492695330033300332863232876310010100692002030033380111002110910100101003640216222993910000100103003430034300343003430034
1002430033224000611992225100101001010010828490492695330033300332863232876310010100202002030033380111002110910100101000640216222993910000100103003430034300343003430034
1002430033225000611992225100101001010010828490492695330033300332863232876310010100202002030033380111002110910100101000640216222993910000100103003430034300343003430034
1002430033225000611992225100101001010010828490492695330033300332863232876310010100202002030033380111002110910100101000640216222993910000100103003430034300343003430034
1002430033225000611992225100101001010010828490492695330033300332863232876310010100202002030033380111002110910100101000640216222993910000100103003430034300343003430034
1002430033225000611992225100101001010010828490492695330033300332863232876310010100202002030033380111002110910100101000640216222993910000100103003430034300343003430034
1002430033224000611992225100101001010010828490492695330033300332863232876310010100202002030033380111002110910100101000640216222993910000100103003430034300343003430034

Test 4: throughput

Count: 8

Code:

  crc32w w0, w8, w9
  crc32w w1, w8, w9
  crc32w w2, w8, w9
  crc32w w3, w8, w9
  crc32w w4, w8, w9
  crc32w w5, w8, w9
  crc32w w6, w8, w9
  crc32w w7, 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): 1.0004

retire uop (01)cycle (02)03l2 tlb miss data (0b)181e3f51schedule 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)9fld unit uop (a6)l1d cache writeback (a8)acbranch cond mispred nonspec (c5)branch mispred nonspec (cb)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
8020480035600000213225801008010080100400500149769550800358003569964036999380100802001602008003516411802011009910080100100000005110316118003180000801008003680036800368003680095
802048003559900923125801008010080100400500149769550800358003569964036999380100802001602008003516411802011009910080100100000005110116118003180000801008003680036800368003680036
8020480035599000266025801008010080100400500149769550800358003569964036999380100802001602008003516411802011009910080100100000005110016118003180000801008003680036800368003680036
8020480035599000203325801008010080100400500149769550800358003569964036999380100802001602008003516411802011009910080100100000005110116118003180000801008003680036800368003680036
802048003560000026352580100801008010040050014976955080035800356996403699938010080200160200800351641180201100991008010010000183005110116118003180000801008003680036800368003680036
8020480035599010265125801008010080100400500149769550800358003569964036999380100802001602008003516411802011009910080100100000005110116118003180000801008003680036800368003680036
8020480035621000269425801008010080100400500149769550800358003569964036999380100802001602008003516411802011009910080100100000005110116118003180000801008003680036800368003680036
8020480035599000206425801008010080100400500149769550800358003569964036999380100802001602008003516411802021009910080100100000005110116118003180000801008003680036800368003680036
8020480035599000194525801008010080100400500149769550800358003569964036999380100802001602008003516411802011009910080100100000005110116118003180000801008003680036800368003680036
80204800355990006725801008010080100400500149769550800358003569996036999380100802001602008003516411802011009910080100100000005110116118003180000801008003680036800368003680036

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)09l2 tlb miss instruction (0a)l2 tlb miss data (0b)18191e1f3f51schedule 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)l1d cache writeback (a8)acc2branch cond mispred nonspec (c5)branch mispred nonspec (cb)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
800248003559900000000462580010800108001040005004976955800358003569986370015800108002016002080035164218002110910800101003211620005020171612128007080000800108003680036800368003680073
80024800355990000000023625800108001080010400050149773158003580035699863700158001080020160020800351641180021109108001010000211400050206161068003280000800108003680036800368003680036
80024800355990000000071125800108001080010400488149769558003580035699863700158001080020160020800353361180021109108001010000048000502010161068003280000800108003680036800368003680036
8002480035620010000003242580010800108001040005004976955800358003569986370015800108002016002080035164118002110910800101000000000502010166108003280000800108003680036800368003680036
80024800355990000103480711258001080010800104000500497695580035800356998637001580010800201600208003516411800211091080010100006600050206166108003280000800108003680036800368003680036
80024800355990000003046258001080010800104000500497695580035800356998637001580010800201600208003516411800211091080010100000150000502061610108003280000800108003680036800368003680036
800248003560000000000183325800108001080010400050049769558007480035699863700458001080064160020800351641180021109108001010000127000502010161068003280000800108003680036800368003680036
80024800355990000000015932580010800108001040005004976955800358003569986370015800108002016008480035164118002110910800101000003000502010166108007180000800108008280036800368003680036
800248003559900000000711258001080010800104000500497695580035800356998637001580010800201600208003516411800211091080010100003222000502010161068003280000800108003680036800368007480036
80024800356000000000046258001080010800104000500497695580035800356998637001580010800201600208003516411800211091080010100000123000502010161068003280000800108003680036800368003680036