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

CRC32CX

Test 1: uops

Code:

  crc32cx 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)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)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1004303322061192225100010001000814404030333033276032891100010002000303338011100110000731161129391000100030343034303430343034
1004303323061192225100010001000814404030333033276032891100010002000303338011100110000731161129391000100030343034303430343034
1004303323061192225100010001000814404030333033276032891100010002000303338011100110000731161129391000100030343034303430343034
1004303322082192225100010001000814404030333033276032891100010002000303338011100110000731161129391000100030343034303430343034
1004303323061192225100010001000814404030333033276032891100010002000303338011100110000731161129391000100030343034303430343034
1004303323061192225100010001000814404030333033276032891100010002000303338011100110000731161129391000100030343034303430343034
1004303323061192225100010001000814404030333033276032891100010002000303338011100110000731161129391000100030343034303430343034
1004303323061192225100010001000814404030333033276032891100010002000303338011100110000731161129391000100030343034303430343034
1004303323061192225100010001000814404030333033276032891100010002000303338011100110000731161129391000100030343034303430343034
1004303323061192225100010001000814404030333033276032891100010002000303338011100110000731161129391000100030343034303430343034

Test 2: Latency 1->2

Code:

  crc32cx 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)03mmu table walk instruction (07)mmu table walk data (08)1e1f3f4d51schedule 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)9fld unit uop (a6)l1d cache writeback (a8)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1020430033225000061199222510100101001010082894049269530300333003328610328741101001020020200300333742110201100991001010010007700710116112993910000101003003430034300343003430034
102043003322500006119922251010010100101008289404926953030033300332861032874110100102002020030033374111020110099100101001000100710116112993910000101003003430034300343003430034
102043003322500006119922251010010100101008289404926953030033300332861032874110100102002020030033374111020110099100101001000200733116112993910000101003003430034300343003430034
102043003322500006119922251010010100101008289404926953030033300332861032874110100102002020030033374111020110099100101001000000710116112993910000101003003430034300343003430034
10204300332250012010319922251010010100101008289404926953030033300332861032874110100102002020030033374111020110099100101001000100710216112993910000101003003430034300343003430034
1020430033225110886119922251010010100101008289404926953030033300332861032874110100102002020030033374111020110099100101001000000710116112993910000101003003430034300343003430034
102043003322400006119922251010010100101008289404926953030033300332861032874110100102002020030033374111020110099100101001000103710116112993910000101003003430034300343003430034
1020430033225000010319922251010010100101008289404926953030033300332861032874110100102002020030033374111020110099100101001004046710116212993910000101003003430034300343003430034
102043003322500006119922251010010100101008289404926953030033300332861032874110100102002020030033374111020110099100101001000000710116112993910000101003003430034300343003430034
1020430033225000093619922251010010100101008289404926953030033300332861032874110100102002020030033374111020110099100101001000000710116112993910000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)03mmu 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 cache writeback (a8)accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10024300332250008219922251001010010100108284900492695330033300332863232879210010101182002030033380111002110910100101006640216222993910000100103003430034300343003430034
100243003322400126119922251001010010100108284900492699630033300332863232876310010100202002030033380111002110910100101003640216222993910000100103003430034300343003430034
10024300332250006119922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000640216222993910000100103003430034300343003430034
10024300332240006119922251001010010100108284901492695330033300332863232876310010100202002030033380111002110910100101000640216222993910000100103003430034300343003430034
10024300332250006119922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000640216222993910000100103003430034300343003430034
10024300332250006119922251001010010100108284900492695330033300332863232876310010100202002030077380111002110910100101000640216222993910000100103003430034300343003430034
10024300332250006119922251002610010100458284900492695330033300332863232876310010100202002030033380111002110910100101000640216222993910000100103003430034300343003430034
10024300332250006119922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000640216222993910000100103003430034300343003430034
10024300332250006119922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000640216222993910000100103003430034300343003430034
10024300332250006119922251001010010100108284900982695330033300332863232876310010100202002030033380111002110910100101000640216222993910000100103003430034300343003430034

Test 3: Latency 1->3

Code:

  crc32cx 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)03l2 tlb miss data (0b)1e3f4d51schedule 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)9fld unit uop (a6)l1d cache writeback (a8)a9accfd5map dispatch bubble (d6)d9ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
1020430033225006119922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000007101160112993910000101003003430034300343003430034
10204300332250053619922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000007101160112993910000101003003430065300343003430034
10204300332250025119922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000007101160122993910000101003003430034300343003430034
1020430033225006119922251010010100101008291594926953300333003328610328741101001020020200300333741110201100991001010010000007101160112993910000101003003430034300343003430034
1020430033225006119922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000007101160112993910000101003003430034300343003430034
1020430033225006119922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000007101160112993910000101003003430034300343003430034
10204300332250072619922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000007101160112993910000101003003430034300343003430034
1020430033225006119909251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000007101160152993910000101003003430034300343003430034
1020430033225006119922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000007101160112993910000101003003430034300343003430034
1020430033225006119922251010010100101008289404926953300333003328610328741101001020020200300333741110201100991001010010000007101160112993910000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)03mmu table walk data (08)191e1f3f4d51schedule 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
100243003322400006119922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000640416552993910000100103003430034300343003430034
100243003322500006119922251001010010100108284901492695330033300332863232876310010100202002030033380111002110910100101000640616652993910000100103003430034300343003430034
100243003322500006119922251001010010100108284900492695330076300772863232876310010100202002030033380111002110910100101000640516642993910000100103003430034300343003430034
100243003322500006119922251001010010100108284901492695330033300332863232876310010100202002030033380111002110910100101000640516552993910000100103003430034300343003430034
100243003322500006119922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000640616562993910000100103003430034300343003430034
100243003322500006119922251001010010100108284901492695330033300332863232876310010100202002030033380111002110910100101020640616562993910000100103003430034300343003430034
100243003322500006119922251001010010100108284901492695330033300332863232876310010100202002030033380111002110910100101000640416462993910000100103003430034300343003430034
100243003322500006119922251001010010100108284901492695330033300332863232876310010100202002030033380111002110910100101000640616562993910000100103003430034300343003430034
100243003322500006119922251001010010100108284901492695330033300332863232876310010100202002030033380111002110910100101000640516552993910000100103003430034300343003430034
100243003322400006119922251001010010100108284901492695330033300332863232876310010100202002030033380111002110910100101000640416552993910000100103003430034300343003430034

Test 4: throughput

Count: 8

Code:

  crc32cx w0, w8, x9
  crc32cx w1, w8, x9
  crc32cx w2, w8, x9
  crc32cx w3, w8, x9
  crc32cx w4, w8, x9
  crc32cx w5, w8, x9
  crc32cx w6, w8, x9
  crc32cx 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 data (08)l2 tlb miss data (0b)18191e1f3f51schedule 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 access (a0)ld unit uop (a6)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
80204800765990000004625801008010080100400500049769550800358003569964369993801008020016020080035164118020110099100801001000000005110216118003180000801008003680036800368003680036
80204800356000000004625801008010080100400500049769550800358003569964369993801008020016020080035164118020110099100801001000000005110116118003180000801008003680036800368003680036
80204800355990000004625801008010080100400500049769550800358003569964369993801008020016020080035164118020110099100801001000000005110116118003180000801008003680036800368003680036
80204800356000000004625801008010080100400500049769550800358003569964369993801008020016020080035164118020110099100801001000000005110116118003180000801008003680036800368003680036
80204800355990000004625801008010080100400500049769550800358003569964369993801008020016020080035164118020110099100801001000000005110116118003180000801008003680126800818003680036
80204800355990000004625801008010080100400500049769550800358003569964369993801008020016020080035164118020110099100801001000000005110116118003180000801008003680036800368003680036
802048003560000000052525801008010080100400500049769550800358003569964369993801008020016020080035164118020110099100801001000000005110116118003180000801008003680036800368003680036
80204800356000000004625801008010080100400500149769550800358003569964369993801008020016020080035164118020110099100801001000000005110116118003180000801008003680036800368003680036
80204800355990000004625801008010080100400500049769550800358003569964369993801008020016020080035164118020110099100801001000000005110116118003180000801008003680036800368003680036
80204800355990000004625801008010080100400500049769550800358003569964369993801008020016020080035164118020110099100801001000020005110116118003180000801008003680036800368003680036

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)l2 tlb miss data (0b)18191e1f3f51schedule uop (52)schedule int uop (53)dispatch int uop (56)int uops in schedulers (59)5f60696a6d6emap 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 tlb access (a0)l1d tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)a9acc2cdcfl1i cache miss demand (d3)d5map dispatch bubble (d6)d9ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
800248003559900000046258001080010800104000500049769558003580035699860370015800108002016002080035164118002110910800101000000300502004160338003280000800108003680036800368003680036
800248003559900000046258001080010800104000500149769558003580035699860370015800108002016002080035164118002110910800101000000900502003160328003280000800108003680036800758003680036
800248003560000000046258001080010800104000500049769558003580035699860370015800108002016002080035164118002110910800101000000300502005160358003280000800108003680036800368003680036
8002480035599000000462580010800108001040005000497695580035800356998603700158001080020160020800351641180021109108001010000700000502006162368003280000800108003680036800368003680036
8002480216600000027046258001080010800104000500149769558003580035699860370015800108002016002080035164118002110910800101000000300502002160238003280000800108003680036800368003680036
800248003559900000046258001080010800104000500049769558003580076699860370015800108002016002080035164118002110910800101000000300502002160338003280000800108003680036800368003680036
8002480035599000000672580010800108001040005000497695580035800356998603700158001080020160020800351641180021109108001010000290000502003160438003280000800108003680036800368003680036
800248003559900000046258001080010800104000501149769558003580035699860370015800108002016002080035164118002110910800101000000600502005160558003280000800108003680036800368003680036
800248003559900000046258001080010800104000500049769558003580035699860370015800108002016002080035164118002110910800101000000300502006160368003280000800108003680036800368003680036
800248003559900000046258001080010800104000500049769558003580035699860370015800108002016002080035164118002110910800101000000300502002160248003280000800108003680036800368003680036