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

CRC32CH

Test 1: uops

Code:

  crc32ch 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)031e3f4d51schedule 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
100430332206119222510001000100081440040303330332760328911000100020003033380111001100000731161129391000100030343034303430343034
100430332306119222510001000100081440040303330332760328911000100020003033380111001100000731161129391000100030343034303430343034
100430332206119222510001000100081440040303330332760328911000100020003033380111001100000731161129391000100030343034303430343034
100430332306119222510001000100081440040303330332760328911000100020003033380111001100000731161129391000100030343034303430343034
100430332206119222510001000100081440140303330332760328911000100020003033380111001100000731161129391000100030343034303430343034
100430332208219222510001000100081440140303330332760328911000100020003033380111001100000731161129391000100030343034303430343034
100430332306119222510001000100081440040303330332760328911000100020003033380111001100000731161129391000100030343034303430343034
100430332306119222510001000100081440140303330332760328911000100020003033380111001100000731161129391000100030343034303430343034
1004303323025119222510001000100081440040303330332760328911000100020003033380111001100000731161129391000100030343034303430343034
100430332306119222510001000100081440140303330332760328911000100020003033380111001100000731161129391000100030343034303430343034

Test 2: Latency 1->2

Code:

  crc32ch 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)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)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
102043003322500611992225101001010010100828940049269530300333003328610328741101001020020200300333741110201100991001010010010000710116112993910000101003003430034300343003430034
102043003322400611992225101001010010100828940149239170300333003328610328741101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
102043003322500611992225101001010010100828940149269530300333003328610328741101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
102043003322500611992225101001010010100828940149269530300333003328610328741101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
102043003322500611992225101001010010100828940149269530300333003328610328741101001039720200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
102043003322400611992225101001010010100828940149269530300333003328610328741101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
102043003322500611992225101001010010100828940149269530300333003328610328763101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
102043003322500611992225101001010010100828940049269530300333003328610328741101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
102043003322500611992225101001010010100828940049269530300333003328610328741101001020020200300333741110201100991001010010000000710116112993910000101003003430034300343003430034
102043003322500611992225101001010010100828940149269530300333003328610328741101001025120200300333741110201100991001010010000010710116112993910000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)03mmu table walk data (08)091e3a3f4d51schedule 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)ld unit uop (a6)l1d cache writeback (a8)a9accfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10024300332250000122619922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000000640216222993910000100103003430034300343003430034
10024300332250000136319922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101040000640216222993910000100103003430034300343003430034
100243003322500008419922251001010010100108284900492695330033300332863232876310010100692002030033380111002110910100101000200640216242993910000100103003430034300343003430034
100243003322500006119922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000000640216222993910000100103003430034300343003430034
100243003322500008419922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000120640216222993910000100103003430034300343003430034
1002430033225000012619922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000000640216222993910000100103003430034300343003430034
100243003322500008419922251001010010100108284901492695330033300332863232876310010100202002030033380111002110910100101000000640216222993910000100103003430034300343003430034
100243003322500008419922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000000640216222993910000100103003430034300343003430034
100243003322500008419922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000000640216222993910000100103003430034300343003430034
1002430033225000049919922251001010010100108284900492695330033300332863232876310010100202002030033380111002110910100101000009640216222993910000100103003430034300343003430034

Test 3: Latency 1->3

Code:

  crc32ch 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)181e3f4d51schedule 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 tlb miss (a1)ld unit uop (a6)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
10204300332250002101992225101001010010100828940492695330033300332861032874110100102002020030033374111020110099100101001000200000710116112993910000101003003430034300343003430034
1020430033225000611992225101001010010100828940492695330033300332861032874110100102002020030033374111020110099100101001000000000710116112993910000101003003430034300343003430034
1020430033225000611992225101001010010100828940492695330033300332861032874110100102002020030033374111020110099100101001000000000710116112993910000101003003430034300343003430034
1020430033224000611992225101001010010100828940492695330033300332861032874110100102002020030033374111020110099100101001000000000710116112993910000101003003430034300343003430034
1020430033225000611992225101001010010100828940492695330033300332861032874110100102002020030033374111020110099100101001000000000710116112993910000101003003430034300343003430034
1020430033225000841992225101001010010100828940492695330033300332861032874110100102002020030033374111020110099100101001000000000710116112993910000101003003430034300343003430034
1020430033225000611992225101001010010100828940492695330033300332861032874110100102002020030033374111020110099100101001000000000710116112993910000101003003430034300343003430034
1020430033225000611992225101001010010100828940492695330033300332861032874110100102002020030033374111020110099100101001000000000710116112993910000101003003430034300343003430034
1020430033225000611992225101001010010100828940492695330033300332861032874110100102002020030033374111020110099100101001000000000710116112993910000101003003430034300343003430034
1020430033225000611992225101001010010100828940492695330033300332861032874110100102002020030033374111020110099100101001000000000710116112993910000101003003430034300343003430034

1000 unrolls and 10 iterations

Result (median cycles for code): 3.0033

retire uop (01)cycle (02)03181e1f3f4d51schedule 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 cache writeback (a8)a9branch cond mispred nonspec (c5)cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
100243003322501320611992225100101001010010828490149269533003330033286323287631001010020200203003338011100211091010010100000640316222993910000100103003430034300343003430034
1002430119225000611992225100181001010010828599149269963003330033286323287631001010071200203003338011100211091010010100000640216222993910000100103003430034300343003430034
100243003322413108611992225100101001010010828490149269533003330033286323287631001010020200203003338011100211091010010100000640216222993910000100103003430034300343003430034
10024300332250005361992225100101001010010828490149269533003330033286323287631001010020200203003338011100211091010010100000640216222993910000100103003430034300343003430034
10024300332240007261992225100101001010010828490149269533003330033286323287631001010020200203003338011100211091010010100000640216222993910000100103003430034300343003430034
1002430033225000821992225100101001010010828490149269533003330033286323287631001010020200203003338011100211091010010100000640216222993910000100103003430034300343003430034
1002430033225000611992225100101001010010828490149269533003330033286323287631001010020200203003338011100211091010010100000640216222993910000100103003430034300343003430034
1002430033225000611992225100101001010010828490149269533003330033286323287631001010020200203003338011100211091010010100000640216222993910000100103003430034300343003430034
1002430033225000611992225100101001010010828490149269533003330033286323287631001010020200203003338011100211091010010100000640216222993910000100103003430034300343003430034
1002430033225000611992225100101001010010828490149269533003330033286323287631001010020200203003338011100211091010010100000640216222993910000100103003430034300343003430034

Test 4: throughput

Count: 8

Code:

  crc32ch w0, w8, w9
  crc32ch w1, w8, w9
  crc32ch w2, w8, w9
  crc32ch w3, w8, w9
  crc32ch w4, w8, w9
  crc32ch w5, w8, w9
  crc32ch w6, w8, w9
  crc32ch 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)03mmu table walk instruction (07)l2 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)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)ld unit uop (a6)l1d cache writeback (a8)a9acc2cfd5map dispatch bubble (d6)ddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
8020480037599000000071125801008010080100400500149769558003580035699640369993801008020016020080035164118020110099100801001000000005110416558003180000801008003680036800368003680036
8020480035599000110071125801008010080100400500149769558003580035699640369993801008020016020080035164118020110099100801001000000005110416458003180000801008003680036800368003680036
80204800356000000000123525801008010080100400500149769558003580035699640369993801008020016020080035164118020110099100801001000000005110416548016780000801008003680036800368003680171
802048003560000004004625801008010080100400500149769558003580035699640369993801008020016020080218164118020110099100801001000000005110516458003180000801008003680036800368003680036
80204800355990000039017425801008019180100400500149769558021780035699640369993801008020016020080035164118020110099100801001000200005110416458003180000801008003680036800368003680036
802048003560000000004625801008010080100400500149769558003580035700370369993801008020016020080035164118020110099100801001000000005110516558003180000801008017180036800368003680036
802048003560000000004625801008010080100400500149769558003580035699640369993801008020016020080035164118020110099100801001000000198905110416458003180000801008003680217800368003680036
802048003559900000004625801008010080100400500149771378003580035699640369993801008020016020080035164118020110099100801001000030005110316458003180000801008003680036800368003680036
80204800355990000012090925801008010080100400500149769558003580035699640369993801008020016020080035164118020110099100801001000000005110416458003180000801008003680036800368003680036
802048003559900000004625801008010080100400500149769558003580035699640369993801008020016020080035164118020110099100801001000000005110516458003180000801008003680036800368003680036

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)0918191e1f3f51schedule 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)9fld unit uop (a6)l1d cache writeback (a8)a9accfd5map dispatch bubble (d6)dbddfetch restart (de)e0? int output thing (e9)? int retires (ef)f5f6f7f8fd
8002480035599000015046258001080010800104000500497695508003580035699863700158001080020160020800351641180021109108001010000050205160448003280000800108003680036800368003680036
8002480035599000000111258001080010800104000500497695508003580035699863700158001080020160020800351641180021109108001010000050204160428003280000800108003680036800368003680036
800248003559900000046258001080010800104000500497695508003580035699863700158001080020160020800353341180021109108001010000050203160248003280000800108003680036800368003680036
80024800355990000001120258001080010800104000500497695508003580035699863700158001080020160020800351641180021109108001010000050204160428003280000800108003680036800368003680036
800248003559900000046258001080010800104000500497695508003580035699863700158001080020160020800351641180021109108001010000050204160428003280000800108003680036800368003680036
80024800355990000004677258001080010800104000500497695508003580035699863700158001080020160020800351641180021109108001010000050202160248003280000800108003680036800368003680036
800248003560000000046258001080010800104000501497695508003580035699863700158001080020160020800351641180021109108001010000050202160568003280000800108003680036800368003680036
800248003560000000046258001080010800104000501497695508003580035699863700158001080020160020800351711180021109108001010000050204160428003280000800108003680036800368003680036
80024800356000000669046258001080010800104000500497695508003580035699863700158001080020160020800351641180021109108001010000050202160248003280000800108003680036800368003680036
800248003560000000046258001080010800104000501497695508003580035699863700158001080020160020800351641180021109108001010000050204160448003280000800108003680036800368003680036